|
@@ -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) { |
|
|