aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pca.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-01 16:47:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-02 12:19:07 +0200
commit18bb323da437642616bfefcc1d6bc781ca0658b4 (patch)
tree0aee8db7ffd4c0e68f0cffab7c59672e111bccfc /libavutil/pca.h
parenteca36784b87be259b89c1d0eecacffac3f672ac6 (diff)
downloadffmpeg-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/pca.h')
0 files changed, 0 insertions, 0 deletions