]> git.sesse.net Git - ffmpeg/commitdiff
pngdec: show verbose message for unsupported files
authorPaul B Mahol <onemda@gmail.com>
Mon, 9 Jan 2012 21:35:19 +0000 (22:35 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 9 Jan 2012 21:35:19 +0000 (22:35 +0100)
libavcodec/pngdec.c

index 0ede85fe189a7fc40a98185c92c26315d72ad81e..b439329e36aec44048264f6f00294e31bc095389 100644 (file)
@@ -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])