png: Support RGBA64 pixel format
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 16 Jul 2017 12:35:40 +0000 (14:35 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Aug 2017 07:23:44 +0000 (09:23 +0200)
libavcodec/pngdec.c

index 7dc5c28..bc8c952 100644 (file)
@@ -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",