@@ -508,7 +508,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
case 0x11110000: /* for bayer-encoded huffman lossless JPEGs embedded in DNGs */
if (!s->bayer)
goto unk_pixfmt;
- s->avctx->pix_fmt = AV_PIX_FMT_GRAY16LE;
+ s->avctx->pix_fmt = AV_PIX_FMT_GRAY16;
break;
case 0x11111100:
if (s->rgb)
@@ -918,7 +918,7 @@ static int dng_decode_jpeg(AVCodecContext *avctx, AVFrame *frame,
/* See dng_blit for explanation */
if (s->avctx_mjpeg->width == w * 2 &&
s->avctx_mjpeg->height == h / 2 &&
- s->avctx_mjpeg->pix_fmt == AV_PIX_FMT_GRAY16LE) {
+ s->avctx_mjpeg->pix_fmt == AV_PIX_FMT_GRAY16) {
is_single_comp = 1;
} else if (s->avctx_mjpeg->width == w &&
s->avctx_mjpeg->height == h &&
This is just found by reading the code, I have not found a valid file using this codepath so its untested. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/mjpegdec.c | 2 +- libavcodec/tiff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)