diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-08-05 16:00:18 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-08-09 16:28:18 -0400 |
commit | d55ad59a8a67b73f3370ee01efd0051fbffe3577 (patch) | |
tree | 31ed0608a919c255c74ba047d3514d37f0145ad2 /libavcodec/ac3enc_template.c | |
parent | 12fe75942316dd13dec42502145fd3292882f510 (diff) | |
download | ffmpeg-d55ad59a8a67b73f3370ee01efd0051fbffe3577.tar.gz |
ac3enc: separate exponent bit counting from exponent grouping.
Move bit counting to the bit allocation function. Move exponent grouping to
after bit allocation. This will allow for adjustment of bandwidth parameters
during bit allocation without having to do exponent grouping multiple times.
Diffstat (limited to 'libavcodec/ac3enc_template.c')
-rw-r--r-- | libavcodec/ac3enc_template.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c index 103e7b1a96..dd1e48d1f8 100644 --- a/libavcodec/ac3enc_template.c +++ b/libavcodec/ac3enc_template.c @@ -463,6 +463,8 @@ int AC3_NAME(encode_frame)(AVCodecContext *avctx, unsigned char *frame, return ret; } + ff_ac3_group_exponents(s); + ff_ac3_quantize_mantissas(s); ff_ac3_output_frame(s, frame); |