diff mbox series

[FFmpeg-devel,v4,06/11] libavutil/hwcontext_qsv: pass vendor option to child device

Message ID 20200508151821.49051-6-artem.galin@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel,v4,01/11] fftools/qsv: enabling d3d11va/dxva2 device selection
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Artem Galin May 8, 2020, 3:18 p.m. UTC
From: Artem Galin <artem.galin@intel.com>

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

Patch

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 38681dfc9b..5ffb8fb437 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1464,6 +1464,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