From 9d67bf2662158e7e652972576a4dd436a792d628 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Wed, 26 Jun 2024 17:53:40 -0400 Subject: [PATCH] Revert "plugins/win-dshow: Add CUDA decoder" This reverts commit ce4c99be4e52950a4bd49eb68d99ccdda2e87f96. This was causing infinitely looping log errors in systems with no CUDA-capable hardware when hardware decoding was enabled on video capture devices with custom config enabled. --- plugins/win-dshow/ffmpeg-decode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/win-dshow/ffmpeg-decode.c b/plugins/win-dshow/ffmpeg-decode.c index 20ad56590..e5ba5ea4f 100644 --- a/plugins/win-dshow/ffmpeg-decode.c +++ b/plugins/win-dshow/ffmpeg-decode.c @@ -23,8 +23,10 @@ #endif enum AVHWDeviceType hw_priority[] = { - AV_HWDEVICE_TYPE_CUDA, AV_HWDEVICE_TYPE_D3D11VA, AV_HWDEVICE_TYPE_DXVA2, - AV_HWDEVICE_TYPE_QSV, AV_HWDEVICE_TYPE_NONE, + AV_HWDEVICE_TYPE_D3D11VA, + AV_HWDEVICE_TYPE_DXVA2, + AV_HWDEVICE_TYPE_QSV, + AV_HWDEVICE_TYPE_NONE, }; static bool has_hw_type(const AVCodec *c, enum AVHWDeviceType type)