diff options
author | James Almer <jamrial@gmail.com> | 2018-09-11 19:41:07 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-09-11 19:41:07 +0300 |
commit | 185aa5e896e15ae96145609944bfc6bbb239bc64 (patch) | |
tree | a9a9eb278ff3393e2b399dab1a3beb797746a950 /libavfilter/qsvvpp.c | |
parent | 0ff76ca86e0ea4dcf2b392c45f5fac8e5576bb0d (diff) | |
parent | e05e5920a4e1f1f15cc8a7c843159d519f6ec18e (diff) |
Merge commit 'e05e5920a4e1f1f15cc8a7c843159d519f6ec18e'
* commit 'e05e5920a4e1f1f15cc8a7c843159d519f6ec18e':
qsv: Error out if getting session handle failed in avfilter
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/qsvvpp.c')
-rw-r--r-- | libavfilter/qsvvpp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 2c01295628..7ee1e565b6 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -503,6 +503,11 @@ static int init_vpp_session(AVFilterContext *avctx, QSVVPPContext *s) } } + if (ret != MFX_ERR_NONE) { + av_log(avctx, AV_LOG_ERROR, "Error getting the session handle\n"); + return AVERROR_UNKNOWN; + } + /* create a "slave" session with those same properties, to be used for vpp */ ret = MFXInit(impl, &ver, &s->session); if (ret != MFX_ERR_NONE) { |