Commit b60a65ee authored by Michael Niedermayer's avatar Michael Niedermayer

mjpegdec: fix AV_PIX_FMT_YUVJ411P handling

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a90baa63
...@@ -428,7 +428,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) ...@@ -428,7 +428,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG; s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
break; break;
case 0x41111100: 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; s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG;
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment