]> git.sesse.net Git - ffmpeg/commit
avcodec/msmpeg4dec: Reuse identical MV VLC
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Dec 2020 01:47:48 +0000 (02:47 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 25 Jan 2021 13:51:53 +0000 (14:51 +0100)
commit27eea249cc99a53754ea61ccf29bdff9ae13f55e
tree11c04f4cf9848b203971d50d1ec4416e44c2512e
parentd90d0a715f08384bf44b004da60c6d1760a30beb
avcodec/msmpeg4dec: Reuse identical MV VLC

msmpeg4dec and ituh263dec both create VLCs with identical parameters out
of ff_mvtab. Given that ff_msmpeg4_decode_init() always (indirectly) calls
ff_h263_decode_init_vlc(), the VLC initialized by the latter can be
directly used by msmpeg4dec. Doing so saves a bit more than 2KB from the
.bss segment as well as the code to initialize a VLC.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/h263.h
libavcodec/ituh263dec.c
libavcodec/msmpeg4dec.c