diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-08 16:59:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-12 02:00:08 +0200 |
commit | c4990409f2edf5ec034e47aa79e8b9f5cc798d3a (patch) | |
tree | 4a40dcea77b0173a0268b84d9320564e68998d8a /libavcodec/mpeg12vlc.h | |
parent | 86f0bba776018cd83642c0195ac3f41f3c87c1d3 (diff) |
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>
Diffstat (limited to 'libavcodec/mpeg12vlc.h')
-rw-r--r-- | libavcodec/mpeg12vlc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12vlc.h b/libavcodec/mpeg12vlc.h index c5abae96b6..70aca645cb 100644 --- a/libavcodec/mpeg12vlc.h +++ b/libavcodec/mpeg12vlc.h @@ -31,7 +31,7 @@ #include "vlc.h" #define DC_VLC_BITS 9 -#define MV_VLC_BITS 9 +#define MV_VLC_BITS 8 #define TEX_VLC_BITS 9 #define MBINCR_VLC_BITS 9 |