]> git.sesse.net Git - ffmpeg/commit
avcodec/mobiclip: Avoid redundant codes table to initialize VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 31 Oct 2020 00:23:34 +0000 (01:23 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:45 +0000 (17:51 +0100)
commita58be262931a803e89c5afc296bac7e308e13f49
treeadb856c8ff8966e43e8c9f84bc9757e4e2b5e6f6
parenta2a8da6dfb6ef7e7bcea4f71181e6c6a5a2db41d
avcodec/mobiclip: Avoid redundant codes table to initialize VLCs

If both codes, lengths and symbols tables are ordered so that the codes
are sorted from left to right in the tree, the codes can be easily
derived from the lengths and therefore become redundant. This is
exploited in this commit to remove the codes tables for the mobiclip
decoder; notice that tables for the run-length VLC were already ordered
correctly.

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