]> git.sesse.net Git - ffmpeg/commit
avcodec/vp3: Apply VLC offset during init
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 6 Nov 2020 09:14:22 +0000 (10:14 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
commit22241d12c7bc7f317832d8101ebed8d2db78a41f
tree9e1dfe0ffa569a83987434cfe4485d14f545a6ca
parent984fdfd042aeec7d48cd906661b2192568874730
avcodec/vp3: Apply VLC offset during init

By switching to ff_init_vlc_from_lengths() one can apply both positive
as well as negative offsets for free; in this case it even saves space
because one replaces codes tables that don't fit into an uint8_t by
symbols tables that fit into an uint8_t or can even be completely
avoided as they are trivial.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/vp3.c
libavcodec/vp3data.h
libavcodec/vp4data.h