[FFmpeg-devel] [PATCH v5 6/9] libavutil/hwcontext_qsv: pass vendor option to child device

artem.galin at gmail.com artem.galin at gmail.com
Mon May 18 21:55:05 EEST 2020


From: Artem Galin <artem.galin at intel.com>

Signed-off-by: Artem Galin <artem.galin at intel.com>
---
 libavutil/hwcontext_qsv.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 036dc94748..d84de696dd 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1451,6 +1451,11 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
 #endif
 #if CONFIG_D3D11VA
     case AV_HWDEVICE_TYPE_D3D11VA:
+        {
+            e = av_dict_get(opts, "vendor", NULL, 0);
+            if(e)
+                av_dict_set(&child_device_opts, "vendor", e->value, 0);
+        }
         break;
 #endif
 #if CONFIG_DXVA2
-- 
2.26.2



More information about the ffmpeg-devel mailing list