]> git.sesse.net Git - ffmpeg/commit
avcodec/indeo2: Make tables used to initialize VLCs smaller
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 1 Nov 2020 03:16:25 +0000 (04:16 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
commitf25dde0e278b0f70cfbcdb281a80de1b1e75f611
tree95afacd09a9578f1ff84d12f09cd74f7837c741e
parentcd7c3ac84d9e1ec8cfaa1af6b6b3447f40c4b860
avcodec/indeo2: Make tables used to initialize VLCs smaller

Switching from ff_init_vlc_sparse() to ff_init_vlc_from_lengths()
allows to replace codes which are so long that they need to be stored
in an uint16_t by symbols which fit into an uint8_t; furthermore, it is
also easily possible to already incorporate the offset (the real range
of Indeo 2 symbols starts at one, not zero) into the symbols.

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