]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pngdec.c
Fix compilation without HAVE_AVX, HAVE_YASM etc.
[ffmpeg] / 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])