Skip to content
Snippets Groups Projects
Commit 0c99b900 authored by Luca Barbato's avatar Luca Barbato
Browse files

png: Support RGBA64 pixel format

parent 9f5b77c1
No related branches found
No related tags found
No related merge requests found
......@@ -520,6 +520,9 @@ static int decode_frame(AVCodecContext *avctx,
} else if (s->bit_depth == 16 &&
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
avctx->pix_fmt = AV_PIX_FMT_YA16BE;
} else if (s->bit_depth == 16 &&
s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) {
avctx->pix_fmt = AV_PIX_FMT_RGBA64BE;
} else {
avpriv_report_missing_feature(avctx,
"Bit depth %d color type %d",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment