mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
@@ -485,6 +485,9 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
} else if (s->bit_depth == 16 &&
|
} else if (s->bit_depth == 16 &&
|
||||||
s->color_type == PNG_COLOR_TYPE_RGB) {
|
s->color_type == PNG_COLOR_TYPE_RGB) {
|
||||||
avctx->pix_fmt = PIX_FMT_RGB48BE;
|
avctx->pix_fmt = PIX_FMT_RGB48BE;
|
||||||
|
} else if (s->bit_depth == 16 &&
|
||||||
|
s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
|
||||||
|
avctx->pix_fmt = PIX_FMT_RGBA64BE;
|
||||||
} 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->bit_depth == 1) {
|
} else if (s->bit_depth == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user