png: Report more details regarding unsupported pixel formats

This commit is contained in:
Luca Barbato 2017-07-16 13:46:16 +02:00
parent 4c0588b456
commit 9f5b77c16f

View File

@ -521,6 +521,9 @@ static int decode_frame(AVCodecContext *avctx,
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
avctx->pix_fmt = AV_PIX_FMT_YA16BE;
} else {
avpriv_report_missing_feature(avctx,
"Bit depth %d color type %d",
s->bit_depth, s->color_type);
goto fail;
}