Skip to content

Commit

Permalink
pngdec: Add support for PIX_FMT_Y400A
Browse files Browse the repository at this point in the history
Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
andoma committed Apr 14, 2010
1 parent 4744f89 commit 67d96fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavcodec/pngdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 67d96fb

Please sign in to comment.