diff options
author | Justin Ruggles | 2011-07-14 13:02:45 -0400 |
---|---|---|
committer | Justin Ruggles | 2011-07-21 14:57:10 -0400 |
commit | be7bd626c4832c4bc5295a01bfd68156ac78ccba (patch) | |
tree | 7ab89b387d01a15495c458ab8832ed0622b7b2f1 /libavcodec/ac3enc_float.c | |
parent | 4555874af19acd0cbd6e856e032468ff52ceaa63 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index 776d185fa4..9f691a1e16 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); |