Cosmetics

parent fa3e0190
...@@ -216,9 +216,9 @@ typedef struct WmallDecodeCtx { ...@@ -216,9 +216,9 @@ typedef struct WmallDecodeCtx {
int8_t esc_len; ///< length of escaped coefficients int8_t esc_len; ///< length of escaped coefficients
uint8_t num_chgroups; ///< number of channel groups uint8_t num_chgroups; ///< number of channel groups
WmallChannelGrp chgroup[WMALL_MAX_CHANNELS]; ///< channel group information WmallChannelGrp chgroup[WMALL_MAX_CHANNELS]; ///< channel group information
WmallChannelCtx channel[WMALL_MAX_CHANNELS]; ///< per channel data WmallChannelCtx channel[WMALL_MAX_CHANNELS]; ///< per channel data
// WMA lossless // WMA lossless
...@@ -363,10 +363,10 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -363,10 +363,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
s->channel[i].prev_block_len = s->samples_per_frame; s->channel[i].prev_block_len = s->samples_per_frame;
/** subframe info */ /** subframe info */
log2_max_num_subframes = ((s->decode_flags & 0x38) >> 3); log2_max_num_subframes = ((s->decode_flags & 0x38) >> 3);
s->max_num_subframes = 1 << log2_max_num_subframes; s->max_num_subframes = 1 << log2_max_num_subframes;
s->max_subframe_len_bit = 0; s->max_subframe_len_bit = 0;
s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1; s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1;
num_possible_block_sizes = log2_max_num_subframes + 1; num_possible_block_sizes = log2_max_num_subframes + 1;
s->min_samples_per_subframe = s->samples_per_frame / s->max_num_subframes; s->min_samples_per_subframe = s->samples_per_frame / s->max_num_subframes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment