diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2017-07-16 14:35:40 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2017-08-21 09:23:44 +0200 |
commit | 0c99b900d874b60ce89b94742b2215f163c87a2b (patch) | |
tree | a29dd588de36355787ccc29ebd79c88e33abfdb9 /libavcodec | |
parent | 9f5b77c16f4da6248b57f0601364d9c762c620c2 (diff) | |
download | ffmpeg-0c99b900d874b60ce89b94742b2215f163c87a2b.tar.gz |
png: Support RGBA64 pixel format
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pngdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 7dc5c283d4..bc8c952352 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -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", |