diff options
author | Nick Renieris <velocityra@gmail.com> | 2019-08-29 16:10:44 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-02 09:26:52 +0200 |
commit | 03f95403eb1105be50a983ef8dd135927d39f407 (patch) | |
tree | 31611747408b083093ccd7fad469daf957ee08fb /libavfilter/vf_bm3d.c | |
parent | 6763192cff8fa62072e9add2230ecf16e5b850f3 (diff) | |
download | ffmpeg-03f95403eb1105be50a983ef8dd135927d39f407.tar.gz |
lavc/jpegtables: Handle multiple mappings to the same value
Some JPEGs [1] have incorrect DHT entries that map 2 codes to
the same value.
The second (last) mapping does not ever actually appear in the
code stream, therefore ignoring any mappings after the first one
fixes this.
Without this, an "mjpeg_decode_dc: bad vlc: 0:0" error is thrown.
In all known files, the 2 codes are mapped to symbol 0 so only
that case is checked.
[1]: Embedded JPEGs in "X7 RAW" and "X7 CinemaDNG" samples here:
https://www.dji.com/gr/zenmuse-x7/info#downloads
Signed-off-by: Nick Renieris <velocityra@gmail.com>
Diffstat (limited to 'libavfilter/vf_bm3d.c')
0 files changed, 0 insertions, 0 deletions