Commit e20a4881 authored by Paul B Mahol's avatar Paul B Mahol Committed by Carl Eugen Hoyos

pngdec: show verbose message for unsupported files

parent f247f4cf
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment