]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg4video: Make tables used to initialize VLCs smaller
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 1 Nov 2020 04:36:35 +0000 (05:36 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
commit3aa81a634a3d559288afcadce5ca3b1c57e57098
tree44c41b88904b145d0df040f42c16c9fd94142aae
parent0d71ac319f74a85add9c62c31461b4dd4dcfcabd
avcodec/mpeg4video: Make tables used to initialize VLCs smaller

Switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths()
allows to replace codes which are so long that they need to be stored
in an uint16_t by symbols which fit into an uint8_t; and even these can
be avoided in case of the sprite trajectory VLC.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mpeg4data.h
libavcodec/mpeg4video.h
libavcodec/mpeg4videodec.c