diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-14 14:51:43 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2010-12-14 14:51:43 +0000 |
commit | ce571ceb456479939f4e19bdb7d0003a60e107b5 (patch) | |
tree | f866efe770b327a2784677ec52ab11a2807710af /libavcodec/ac3.c | |
parent | 47ae6e795b64aaf29c47730cc552d48bb27a0e40 (diff) | |
download | ffmpeg-ce571ceb456479939f4e19bdb7d0003a60e107b5.tar.gz |
Use AC3_MAX_COEFS instead of 256 in a couple places in ac3.c
Originally committed as revision 25968 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3.c')
-rw-r--r-- | libavcodec/ac3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index 9e979def51..4ab77b84a1 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -221,7 +221,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, /* special case, if snr offset is -960, set all bap's to zero */ if (snr_offset == -960) { - memset(bap, 0, 256); + memset(bap, 0, AC3_MAX_COEFS); return; } @@ -246,7 +246,7 @@ void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap, uint8_t *dba_offsets, uint8_t *dba_lengths, uint8_t *dba_values) { - int16_t psd[256]; /* scaled exponents */ + int16_t psd[AC3_MAX_COEFS]; /* scaled exponents */ int16_t band_psd[AC3_CRITICAL_BANDS]; /* interpolated exponents */ int16_t mask[AC3_CRITICAL_BANDS]; /* masking value */ |