]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hwcontext_qsv.c
pthread_frame: make sure ff_thread_release_buffer always cleans the frame
[ffmpeg] / libavutil / hwcontext_qsv.c
index 59e4ed91571e1600de955b7ba024232f36d0759e..b1b67400de7e670dc608f0e2c929d021ad130e59 100644 (file)
@@ -1180,11 +1180,6 @@ static int qsv_device_derive_from_child(AVHWDeviceContext *ctx,
         goto fail;
     }
 
-    ret = MFXQueryVersion(hwctx->session,&ver);
-    if (ret == MFX_ERR_NONE) {
-        av_log(ctx, AV_LOG_VERBOSE, "MFX compile/runtime API: %d.%d/%d.%d\n",
-               MFX_VERSION_MAJOR, MFX_VERSION_MINOR, ver.Major, ver.Minor);
-    }
     return 0;
 
 fail:
@@ -1240,6 +1235,8 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
 
     ret = av_hwdevice_ctx_create(&priv->child_device_ctx, child_device_type,
                                  e ? e->value : NULL, child_device_opts, 0);
+
+    av_dict_free(&child_device_opts);
     if (ret < 0)
         return ret;