]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg12: Reduce size of motion-vector VLC
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 8 Oct 2020 14:59:40 +0000 (16:59 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 12 Oct 2020 00:00:08 +0000 (02:00 +0200)
commitc4990409f2edf5ec034e47aa79e8b9f5cc798d3a
tree4a40dcea77b0173a0268b84d9320564e68998d8a
parent86f0bba776018cd83642c0195ac3f41f3c87c1d3
avcodec/mpeg12: Reduce size of motion-vector VLC

It currently uses 9 bits per table, but there are no codes with
nine bits at all, while there are codes with eight, ten and eleven bits.
So reducing the table size to eight bits will not reduce the amount of
codes that can be parsed in the first step, but it allows to reduce the
size of the motion-vector VLC.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mpeg12.c
libavcodec/mpeg12vlc.h