]> git.sesse.net Git - ffmpeg/commit
avcodec/mpegaudiodec: Reduce the size of tables used to initialize VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 17 Nov 2020 14:53:43 +0000 (15:53 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:47 +0000 (17:51 +0100)
commitdb234dbf73fe97611a75163bbb3b7c22ff953696
treeed52f826e3ffb585b2c7378be8a99e1c7bc41eb5
parent12ace68ab0f07b8049dd9807dd9ea302187bd44b
avcodec/mpegaudiodec: 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 tables of codes of type uint16_t by tables of symbols of
type uint8_t; this saves about 1.3KB for both the fixed and floating
point decoders (if enabled).

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mpegaudiodec_template.c
libavcodec/mpegaudiodectab.h