diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-01 16:47:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-02 12:19:07 +0200 |
commit | 18bb323da437642616bfefcc1d6bc781ca0658b4 (patch) | |
tree | 0aee8db7ffd4c0e68f0cffab7c59672e111bccfc /libavutil/x86/x86util.asm | |
parent | eca36784b87be259b89c1d0eecacffac3f672ac6 (diff) | |
download | ffmpeg-18bb323da437642616bfefcc1d6bc781ca0658b4.tar.gz |
avcodec/ac3enc: Simplify AC-3 bit counting
When encoding E-AC-3, whether coupling is on or not determines whether
an additional frame based coupling exponent strategy element frmcplexpstr
(of size five bits) is present in the bitstream. So just add five to the
number of bits when counting them instead of adding 5*s->cpl_on (the
latter field is currently only 0 or 1, so it doesn't make a difference).
Furthermore, move some parts of the bit allocation that doesn't change
per-frame to count_frame_bits_fixed() (which is only run once during
init).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/x86/x86util.asm')
0 files changed, 0 insertions, 0 deletions