]> git.sesse.net Git - ffmpeg/commitdiff
pngdec: Add support for PIX_FMT_Y400A
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 14 Apr 2010 20:15:50 +0000 (20:15 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 14 Apr 2010 20:15:50 +0000 (20:15 +0000)
Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/pngdec.c

index aa05ff020b75cbc0dbd102746f3d016c2f9d2730..03859a99139c92fda9ee80a43fd96c507e0cec21 100644 (file)
@@ -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;
                 }