From ce4c99be4e52950a4bd49eb68d99ccdda2e87f96 Mon Sep 17 00:00:00 2001 From: moocowsheep <103583807+moocowsheep@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:16:04 -0400 Subject: [PATCH] plugins/win-dshow: Add CUDA decoder --- plugins/win-dshow/ffmpeg-decode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/win-dshow/ffmpeg-decode.c b/plugins/win-dshow/ffmpeg-decode.c index e5ba5ea4f..20ad56590 100644 --- a/plugins/win-dshow/ffmpeg-decode.c +++ b/plugins/win-dshow/ffmpeg-decode.c @@ -23,10 +23,8 @@ #endif enum AVHWDeviceType hw_priority[] = { - AV_HWDEVICE_TYPE_D3D11VA, - AV_HWDEVICE_TYPE_DXVA2, - AV_HWDEVICE_TYPE_QSV, - AV_HWDEVICE_TYPE_NONE, + AV_HWDEVICE_TYPE_CUDA, 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)