aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/mpegvideoenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-01 17:33:10 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-02 05:14:42 +0200
commit56df06dd8346687d6d9b7321f2af41e4fd614ee3 (patch)
tree125938394d2534b5312eae28f78417f3290e4bd0 /libavcodec/x86/mpegvideoenc.c
parentbd473d325d6065bf05502afcd663c312702a2ba7 (diff)
downloadffmpeg-56df06dd8346687d6d9b7321f2af41e4fd614ee3.tar.gz
avcodec/bink: Don't waste space for VLC table
The Bink video decoder uses VLCs; the longest codes of these VLCs have different lengths, yet they are all so small that each VLC is read in one go, so that the number of elements in the VLC table actually used by each table is 1 << nb_bits, where nb_bits is the length of the longest code. Yet when determining the size of the VLC table nb_bits has been overestimated as the number of bits of the longest code in all VLCs, making said table unnecessary big (2048 vs 976 elements). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/x86/mpegvideoenc.c')
0 files changed, 0 insertions, 0 deletions