提交 44857e7a 编写于 作者: I Ivan Uskov 提交者: Michael Niedermayer

libavcodec/qsvdec.c: Extended error messages for MFXVideoDECODE_Init() result

Reviewed-by: NHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 67db57ea
......@@ -110,7 +110,13 @@ int ff_qsv_decode_init(AVCodecContext *avctx, QSVContext *q, AVPacket *avpkt)
ret = MFXVideoDECODE_Init(q->session, &param);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Error initializing the MFX video decoder\n");
if (MFX_ERR_INVALID_VIDEO_PARAM==ret) {
av_log(avctx, AV_LOG_ERROR,
"Error initializing the MFX video decoder, unsupported video\n");
} else {
av_log(avctx, AV_LOG_ERROR,
"Error initializing the MFX video decoder %d\n", ret);
}
return ff_qsv_error(ret);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册