[FFmpeg-cvslog] r22882 - trunk/libavcodec/pngdec.c

andoma subversion
Wed Apr 14 22:15:50 CEST 2010


Author: andoma
Date: Wed Apr 14 22:15:50 2010
New Revision: 22882

Log:
pngdec: Add support for PIX_FMT_Y400A

Modified:
   trunk/libavcodec/pngdec.c

Modified: trunk/libavcodec/pngdec.c
==============================================================================
--- trunk/libavcodec/pngdec.c	Wed Apr 14 22:15:19 2010	(r22881)
+++ trunk/libavcodec/pngdec.c	Wed Apr 14 22:15:50 2010	(r22882)
@@ -489,6 +489,8 @@ static int decode_frame(AVCodecContext *
                     avctx->pix_fmt = PIX_FMT_MONOBLACK;
                 } else if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
                     avctx->pix_fmt = PIX_FMT_PAL8;
+                } else if (s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
+                    avctx->pix_fmt = PIX_FMT_Y400A;
                 } else {
                     goto fail;
                 }



More information about the ffmpeg-cvslog mailing list