diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2013-04-22 22:03:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-22 22:03:09 +0200 |
commit | f4596e8bb6f74599b8258c87036c237c5da4b209 (patch) | |
tree | 6e1a2f496e59e9c337ed8eb283e959dcd1fadfb3 /libavcodec | |
parent | 2ae91c86f3869b656b58ee3ee1f5fd2922d7b659 (diff) | |
download | ffmpeg-f4596e8bb6f74599b8258c87036c237c5da4b209.tar.gz |
mjpegdec: Add support for 4:1:1 YUV
Fixes part of ticket 2004
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpegdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 04b1ca8eb0..b439547836 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -424,6 +424,10 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) s->avctx->pix_fmt = s->cs_itu601 ? AV_PIX_FMT_YUV420P : AV_PIX_FMT_YUVJ420P; 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->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG; + break; default: av_log(s->avctx, AV_LOG_ERROR, "Unhandled pixel format 0x%x\n", pix_fmt_id); return AVERROR_PATCHWELCOME; |