[FFmpeg-cvslog] r9913 - trunk/libavcodec/mjpegdec.c

diego subversion
Sat Aug 4 22:49:39 CEST 2007


Author: diego
Date: Sat Aug  4 22:49:39 2007
New Revision: 9913

Log:
Add support for grayscale MJPEG streams sent by Axis cameras such as the
207MW (http://www.axis.com/products/cam_207mw/).
patch by Sam Hocevar, sam+ffmpeg zoy org


Modified:
   trunk/libavcodec/mjpegdec.c

Modified: trunk/libavcodec/mjpegdec.c
==============================================================================
--- trunk/libavcodec/mjpegdec.c	(original)
+++ trunk/libavcodec/mjpegdec.c	Sat Aug  4 22:49:39 2007
@@ -298,6 +298,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeConte
         else
             s->avctx->pix_fmt = PIX_FMT_GRAY8;
         break;
+    case 0x110000:
+        s->avctx->pix_fmt = PIX_FMT_GRAY8;
+        break;
     case 0x121111:
         s->avctx->pix_fmt = s->cs_itu601 ? PIX_FMT_YUV440P : PIX_FMT_YUVJ440P;
         break;




More information about the ffmpeg-cvslog mailing list