vcpkg/ports/ffmpeg/0023-fix-qsv-init.patch
reito 6a19c0f10a
[ffmpeg/mfx-dispatch] Add mfx-dispatch port, add qsv support and amf support for ffmpeg 4.4.3 (#28263)
* add mfx-dispatch port

* add mfx-dispatch port - versions

* add mfx-dispatch port - versions

* add ffmpeg qsv support

* add ffmpeg qsv port

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - fix qsv init bug

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - fix patch 0023

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - fix 0023

* add ffmpeg qsv port - fix 0023

* add ffmpeg qsv port - fix 0023

* add ffmpeg qsv port - fix 0023

* add ffmpeg qsv port - fix 0023

* add ffmpeg qsv port - fix PR

* add ffmpeg qsv port - versions

* add ffmpeg qsv port - simplify 0023

* add ffmpeg qsv port - 0023

* add ffmpeg qsv port - 0023

* add ffmpeg qsv port - 0023

* add ffmpeg qsv port - 0023

* add ffmpeg qsv + amf port

* add ffmpeg qsv + amf port

* add ffmpeg qsv + amf port

* Create fix-unresolved-symbol.patch

* Update mfx-dispatch.json
2022-12-20 09:46:08 -08:00

23 lines
770 B
Diff

Subject: [PATCH] fix d3d11
---
Index: qsv.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -383,7 +383,11 @@
int ff_qsv_init_internal_session(AVCodecContext *avctx, QSVSession *qs,
const char *load_plugins, int gpu_copy)
{
+#if CONFIG_D3D11VA
+ mfxIMPL impl = MFX_IMPL_AUTO_ANY | MFX_IMPL_VIA_D3D11;
+#else
mfxIMPL impl = MFX_IMPL_AUTO_ANY;
+#endif
mfxVersion ver = { { QSV_VERSION_MINOR, QSV_VERSION_MAJOR } };
mfxInitParam init_par = { MFX_IMPL_AUTO_ANY };