Browse Source

pngdec: Add support for PIX_FMT_Y400A

Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Andreas Öman 15 years ago
parent
commit
67d96fb42d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/pngdec.c

+ 2
- 0
libavcodec/pngdec.c View 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;
}


Loading…
Cancel
Save