summaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc_fixed.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-07-14 13:02:45 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-07-21 14:57:10 -0400
commitbe7bd626c4832c4bc5295a01bfd68156ac78ccba (patch)
tree7ab89b387d01a15495c458ab8832ed0622b7b2f1 /libavcodec/ac3enc_fixed.c
parent4555874af19acd0cbd6e856e032468ff52ceaa63 (diff)
downloadffmpeg-streaming-be7bd626c4832c4bc5295a01bfd68156ac78ccba.zip
ffmpeg-streaming-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c
index ed8992e..508ecb1 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,
OpenPOWER on IntegriCloud