[FFmpeg-soc] [soc]: r5042 - wmapro/wmaprodec.c
faust3
subversion at mplayerhq.hu
Wed Aug 12 20:51:20 CEST 2009
Author: faust3
Date: Wed Aug 12 20:51:19 2009
New Revision: 5042
Log:
base type int8_t is enough for the sf_offsets matrix
Modified:
wmapro/wmaprodec.c
Modified: wmapro/wmaprodec.c
==============================================================================
--- wmapro/wmaprodec.c Wed Aug 12 20:51:10 2009 (r5041)
+++ wmapro/wmaprodec.c Wed Aug 12 20:51:19 2009 (r5042)
@@ -183,7 +183,7 @@ typedef struct WMA3DecodeContext {
uint16_t min_samples_per_subframe;
int8_t num_sfb[WMAPRO_BLOCK_SIZES]; ///< scale factor bands per block size
int16_t sfb_offsets[WMAPRO_BLOCK_SIZES][MAX_BANDS]; ///< scale factor band offsets (multiples of 4)
- int16_t sf_offsets[WMAPRO_BLOCK_SIZES][WMAPRO_BLOCK_SIZES][MAX_BANDS]; ///< scale factor resample matrix
+ int8_t sf_offsets[WMAPRO_BLOCK_SIZES][WMAPRO_BLOCK_SIZES][MAX_BANDS]; ///< scale factor resample matrix
int16_t subwoofer_cutoffs[WMAPRO_BLOCK_SIZES]; ///< subwoofer cutoff values
/* packet decode state */
@@ -895,7 +895,7 @@ static int decode_scale_factors(WMA3Deco
s->channel[c].scale_factor_block_len;
const int idx0 = av_log2(blocks_per_frame);
const int idx1 = av_log2(res_blocks_per_frame);
- const int16_t* sf_offsets = s->sf_offsets[idx0][idx1];
+ const int8_t* sf_offsets = s->sf_offsets[idx0][idx1];
int b;
for (b=0;b<s->num_bands;b++)
s->channel[c].scale_factors[b] =
More information about the FFmpeg-soc
mailing list