changeset 11631:aef934aa4787 libavcodec

pngdec: Add support for PIX_FMT_Y400A
author andoma
date Wed, 14 Apr 2010 20:15:50 +0000
parents 02ad6bf427dc
children 9a5c269f31f5
files pngdec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
                 }