diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-09 22:35:19 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-09 22:35:19 +0100 |
commit | e20a4881ffdb31915a82e9c301b7db8531167852 (patch) | |
tree | 457e85120e3c7e8faf56ac733743588586f17d12 | |
parent | f247f4cf47f4bf6ceb647459f5c78dbf29a59178 (diff) | |
download | ffmpeg-e20a4881ffdb31915a82e9c301b7db8531167852.tar.gz |
pngdec: show verbose message for unsupported files
-rw-r--r-- | libavcodec/pngdec.c | 3 |
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]) |