diff pngdec.c @ 11631:aef934aa4787 libavcodec

pngdec: Add support for PIX_FMT_Y400A
author andoma
date Wed, 14 Apr 2010 20:15:50 +0000
parents 5111783be6ad
children c35d7bc64882
line wrap: on
line diff
--- a/pngdec.c	Wed Apr 14 20:15:19 2010 +0000
+++ b/pngdec.c	Wed Apr 14 20:15:50 2010 +0000
@@ -489,6 +489,8 @@
                     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;
                 }