Module: libav
Branch: master
Commit: 9f5b77c16f4da6248b57f0601364d9c762c620c2

Author:    Luca Barbato <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Sun Jul 16 13:46:16 2017 +0200

png: Report more details regarding unsupported pixel formats

---

 libavcodec/pngdec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 927248f..7dc5c28 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -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;
                 }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to