summaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3enc_float.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_float.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_float.c')
-rw-r--r--libavcodec/ac3enc_float.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 776d185..9f691a1 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -103,7 +103,7 @@ static int normalize_samples(AC3EncodeContext *s)
*/
static void scale_coefficients(AC3EncodeContext *s)
{
- int chan_size = AC3_MAX_COEFS * AC3_MAX_BLOCKS;
+ int chan_size = AC3_MAX_COEFS * s->num_blocks;
s->ac3dsp.float_to_fixed24(s->fixed_coef_buffer + chan_size,
s->mdct_coef_buffer + chan_size,
chan_size * s->channels);
OpenPOWER on IntegriCloud