]> git.sesse.net Git - ffmpeg/commit
avcodec/wnv1: Make array for initializing VLC smaller
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 25 Oct 2020 22:11:42 +0000 (23:11 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:45 +0000 (17:51 +0100)
commita8646a7b3fc9833c4cb3dfc236264e60ea8bcec7
tree3ea0cac7490ec71799256bcc6ebed72f28ea193b
parentf86dcd007ffac5ab8098e6e222418179fe0ce17a
avcodec/wnv1: Make array for initializing VLC smaller

This is possible by switching to ff_init_vlc_from_lengths() which allows
to replace the table for the codes (which need an uint16_t) by a table
of symbols which fit into an uint8_t. Also switch to an ordinary
INIT_VLC macro while just at it.

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