]> git.sesse.net Git - ffmpeg/commit
avcodec/rv40: Avoid code duplication when initializing VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 5 Nov 2020 00:59:08 +0000 (01:59 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
commite7f15f777dfef0904da3e066de198fd3632eba53
tree21b263b628b7b9520aa7709c740a684e484f22d1
parent477fc65d33a085d923af3101946ddfe42bba1341
avcodec/rv40: Avoid code duplication when initializing VLCs

Besides removing code duplication the method for determining the offset
of each VLC table in the VLC_TYPE buffer also has the advantage of not
wasting space for skipped AIC mode 1 VLCs.

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