]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_scale_qsv.c
Merge commit 'e05e5920a4e1f1f15cc8a7c843159d519f6ec18e'
[ffmpeg] / libavfilter / vf_scale_qsv.c
index d1189942d126c9de1b13f04974693ed82244433d..7d593b2b211ea50a9cf65c220c9f10bee9c03ed8 100644 (file)
@@ -302,6 +302,11 @@ static int init_out_session(AVFilterContext *ctx)
         }
     }
 
+    if (err != MFX_ERR_NONE) {
+        av_log(ctx, AV_LOG_ERROR, "Error getting the session handle\n");
+        return AVERROR_UNKNOWN;
+    }
+
     /* create a "slave" session with those same properties, to be used for
      * actual scaling */
     err = MFXInit(impl, &ver, &s->session);