From 67d96fb42d01d4ed5fe6f88b080b53606341beb4 Mon Sep 17 00:00:00 2001 From: Andreas Ă–man Date: Wed, 14 Apr 2010 20:15:50 +0000 Subject: pngdec: Add support for PIX_FMT_Y400A Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pngdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/pngdec.c') diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index aa05ff020b..03859a9913 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -489,6 +489,8 @@ static int decode_frame(AVCodecContext *avctx, 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; } -- cgit v1.2.3