X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpngdec.c;h=b439329e36aec44048264f6f00294e31bc095389;hb=107f55cb01d2333541b8887194c487a6c6bc1ba1;hp=0ede85fe189a7fc40a98185c92c26315d72ad81e;hpb=00c0465dbc5acd27c736d612bbad95fdbe2ef96c;p=ffmpeg diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 0ede85fe189..b439329e36a 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])