aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
diff options
context:
space:
mode:
authorAndreas Öman <andreas@olebyn.nu>2007-07-18 08:11:16 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-07-18 08:11:16 +0000
commit4196cfb75bc5a2c185691861e73995244d6df564 (patch)
tree52fe00acf862c532bbfcc48ba5a6290f9ab54ad3 /libavcodec/mjpegdec.c
parent104d04182d85e8538e8934c072432a05ab7ed999 (diff)
downloadffmpeg-4196cfb75bc5a2c185691861e73995244d6df564.tar.gz
add YUV440P and YUVJ440P support
patch by Andreas Öman: \andreas olebyn nu/ original thread: [FFmpeg-devel] half vertical chroma resolution from JPEGs.. date: 07/03/2007 01:29 PM Originally committed as revision 9732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index f70d9b262d..d65a3463cf 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -298,6 +298,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
else
s->avctx->pix_fmt = PIX_FMT_GRAY8;
break;
+ case 0x121111:
+ s->avctx->pix_fmt = s->cs_itu601 ? PIX_FMT_YUV440P : PIX_FMT_YUVJ440P;
+ break;
case 0x211111:
case 0x221212:
s->avctx->pix_fmt = s->cs_itu601 ? PIX_FMT_YUV422P : PIX_FMT_YUVJ422P;