png: Report more details regarding unsupported pixel formats
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 16 Jul 2017 11:46:16 +0000 (13:46 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Aug 2017 07:23:44 +0000 (09:23 +0200)
libavcodec/pngdec.c

index 927248f..7dc5c28 100644 (file)
@@ -521,6 +521,9 @@ static int decode_frame(AVCodecContext *avctx,
                            s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
                     avctx->pix_fmt = AV_PIX_FMT_YA16BE;
                 } else {
+                    avpriv_report_missing_feature(avctx,
+                                                  "Bit depth %d color type %d",
+                                                  s->bit_depth, s->color_type);
                     goto fail;
                 }