diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-07-14 13:02:45 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-07-21 14:57:10 -0400 |
commit | be7bd626c4832c4bc5295a01bfd68156ac78ccba (patch) | |
tree | 7ab89b387d01a15495c458ab8832ed0622b7b2f1 /libavcodec/ac3enc_fixed.c | |
parent | 4555874af19acd0cbd6e856e032468ff52ceaa63 (diff) | |
download | ffmpeg-be7bd626c4832c4bc5295a01bfd68156ac78ccba.tar.gz |
eac3enc: use different numbers of blocks per frame to allow higher bitrates
Diffstat (limited to 'libavcodec/ac3enc_fixed.c')
-rw-r--r-- | libavcodec/ac3enc_fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c index ed8992ebff..508ecb1efb 100644 --- a/libavcodec/ac3enc_fixed.c +++ b/libavcodec/ac3enc_fixed.c @@ -93,7 +93,7 @@ static void scale_coefficients(AC3EncodeContext *s) { int blk, ch; - for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { + for (blk = 0; blk < s->num_blocks; blk++) { AC3Block *block = &s->blocks[blk]; for (ch = 1; ch <= s->channels; ch++) { s->ac3dsp.ac3_rshift_int32(block->mdct_coef[ch], AC3_MAX_COEFS, |