mjpegdec: fix AV_PIX_FMT_YUVJ411P handling
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Apr 2013 20:11:45 +0000 (22:11 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 May 2013 10:56:12 +0000 (12:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c

index ea90f1d..ef8e1c6 100644 (file)
@@ -428,7 +428,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
         s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
         break;
     case 0x41111100:
-        s->avctx->pix_fmt = AV_PIX_FMT_YUV411P;
+        s->avctx->pix_fmt = s->cs_itu601 ? AV_PIX_FMT_YUV411P : AV_PIX_FMT_YUVJ411P;
         s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
         break;
     default: