summaryrefslogtreecommitdiff
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-09 22:35:19 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-01-09 22:35:19 +0100
commite20a4881ffdb31915a82e9c301b7db8531167852 (patch)
tree457e85120e3c7e8faf56ac733743588586f17d12 /libavcodec/pngdec.c
parentf247f4cf47f4bf6ceb647459f5c78dbf29a59178 (diff)
pngdec: show verbose message for unsupported files
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 0ede85fe18..b439329e36 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])