]> git.sesse.net Git - ffmpeg/commit
avcodec/intrax8: Reduce the size of tables used to initialize VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 6 Nov 2020 12:50:56 +0000 (13:50 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:47 +0000 (17:51 +0100)
commitabf1a4f05cc8c051c51bc8bd8e3bb059075a0bf6
treed60ebcacaf5a5f948bc0cfadcc95ab99c54d9fb8
parentd1a1f1171217d1461a0a158f2bdee8a1d8d541a4
avcodec/intrax8: Reduce the size of tables used to initialize VLCs

By switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths() one
can replace an array of codes of type uint16_t with an array of symbols
of type uint8_t, saving space.

Also remove some more code duplication while at it.

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