diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-12 09:05:42 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-12 22:40:00 +0200 |
commit | 00772ef4f7c87e708b5292a696c3efc78d234366 (patch) | |
tree | c88cd3c46b3ba872c22eb014e0eb96a56db74646 /libavfilter/graphdump.c | |
parent | d7a503ecf9f42561b4a6e2207812a97074f43687 (diff) | |
download | ffmpeg-00772ef4f7c87e708b5292a696c3efc78d234366.tar.gz |
avcodec/webp: Use LE VLC table for LE bitstream reader
The WebP format uses Huffman tables and the decoder therefore uses
VLC tables. Given that WebP is a LE format, a LE bitreader is used;
yet the VLC table is not created for a LE reader (the process used to
create the tables puts the last bit to be read in the lowest bit) and
therefore custom code for reading the VLCs that reverses the bits
read is used instead of get_vlc2(). This commit changes this to use
a table designed for LE bitreader which allows to use get_vlc2() directly.
The necessary reversing of the codes is delegated to
ff_init_vlc_sparse() (and is therefore only done during init and not
when actually reading the VLCs).
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/graphdump.c')
0 files changed, 0 insertions, 0 deletions