[FFmpeg-cvslog] pngdec: show verbose message for unsupported files
Paul B Mahol
git at videolan.org
Mon Jan 9 22:35:29 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 9 22:35:19 2012 +0100| [e20a4881ffdb31915a82e9c301b7db8531167852] | committer: Carl Eugen Hoyos
pngdec: show verbose message for unsupported files
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e20a4881ffdb31915a82e9c301b7db8531167852
---
libavcodec/pngdec.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 0ede85f..b439329 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])
More information about the ffmpeg-cvslog
mailing list