diff options
author | Ivan Uskov <ivan.uskov@nablet.com> | 2015-08-06 09:30:42 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-11 14:18:43 +0200 |
commit | 44857e7a3696bf1a3521be8c0b7354d04af68721 (patch) | |
tree | 94ae5c8e38d61050b092939d4dc83d284fd065e2 /libavcodec | |
parent | 67db57ea12bf5a9cb7409a7649b476027cab23a1 (diff) | |
download | ffmpeg-44857e7a3696bf1a3521be8c0b7354d04af68721.tar.gz |
libavcodec/qsvdec.c: Extended error messages for MFXVideoDECODE_Init() result
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvdec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 8fa44b5ca1..e3c076da30 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -110,7 +110,13 @@ int ff_qsv_decode_init(AVCodecContext *avctx, QSVContext *q, AVPacket *avpkt) ret = MFXVideoDECODE_Init(q->session, ¶m); 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); } |