]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg4videodec: Don't initialize unused RL VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 22:32:35 +0000 (23:32 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 25 Jan 2021 13:51:53 +0000 (14:51 +0100)
commit3e0bd5064d4e2f87a69c6028eb739db5a45d3cb9
treea6a6ca372a299143b7732273b575d39e4e899f7c
parentb0c47487701d135c9ed1423fa367643cf03c8670
avcodec/mpeg4videodec: Don't initialize unused RL VLCs

The RLTables whose VLC tables are only used for intra blocks only use
the very first VLC table; yet all 32 have been initialized. This commit
stops this by switching to INIT_FIRST_VLC_RL. This saves 201624B from
the .bss segment; in case the decoder is actually used, this translates
into less memory used.

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