lavc/mjpegdec: Decode Huffman-coded lossless JPEGs embedded in DNGs
authorNick Renieris <velocityra@gmail.com>
Thu, 29 Aug 2019 13:10:40 +0000 (16:10 +0300)
committerPaul B Mahol <onemda@gmail.com>
Mon, 2 Sep 2019 07:26:52 +0000 (09:26 +0200)
commit40abff05d245977089426e7e7761a4a2146446fb
treee34945934d8f468c09c890ac1ea018f22b108010
parent2a21487b9ea1ec5f24a9f09cd3845fa2eb6ed383
lavc/mjpegdec: Decode Huffman-coded lossless JPEGs embedded in DNGs

Main image data in DNGs is usually comprised of tiles, each of which is a Huffman-encoded lossless JPEG.

Tested for ljpeg regressions with:
`ffmpeg -f lavfi -i testsrc=d=1 -vcodec ljpeg test.avi`
`ffmpeg test.avi out.avi`
The modified code in ljpeg_decode_rgb_scan runs without issues.

Signed-off-by: Nick Renieris <velocityra@gmail.com>
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h