From e20a4881ffdb31915a82e9c301b7db8531167852 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 9 Jan 2012 22:35:19 +0100 Subject: [PATCH 1/1] pngdec: show verbose message for unsupported files --- libavcodec/pngdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 0ede85fe189..b439329e36a 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -502,6 +502,9 @@ static int decode_frame(AVCodecContext *avctx, s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { avctx->pix_fmt = PIX_FMT_GRAY8A; } else { + av_log(avctx, AV_LOG_ERROR, "unsupported bit depth %d " + "and color type %d\n", + s->bit_depth, s->color_type); goto fail; } if(p->data[0]) -- 2.39.2