mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 12:56:44 +08:00
pngdec: Add support for PIX_FMT_Y400A
Originally committed as revision 22882 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -489,6 +489,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
avctx->pix_fmt = PIX_FMT_MONOBLACK;
|
avctx->pix_fmt = PIX_FMT_MONOBLACK;
|
||||||
} else if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
|
} else if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
|
||||||
avctx->pix_fmt = PIX_FMT_PAL8;
|
avctx->pix_fmt = PIX_FMT_PAL8;
|
||||||
|
} else if (s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
|
||||||
|
avctx->pix_fmt = PIX_FMT_Y400A;
|
||||||
} else {
|
} else {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user