提交 67d96fb4 编写于 作者: A Andreas Öman

pngdec: Add support for PIX_FMT_Y400A

Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 4744f896
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册