From 9933d1ff3a5156aeba470f2407344f90d030633d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 11 Apr 2022 12:58:59 +0400 Subject: [PATCH] Try CUDA hardware decoding on Linux. --- Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp index 0d14fdadd..92ff5d68b 100644 --- a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp +++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp @@ -150,6 +150,7 @@ void PremultiplyLine(uchar *dst, const uchar *src, int intsCount) { #else // Q_OS_WIN || Q_OS_MAC case AV_PIX_FMT_VAAPI: return AV_HWDEVICE_TYPE_VAAPI; case AV_PIX_FMT_VDPAU: return AV_HWDEVICE_TYPE_VDPAU; + case AV_PIX_FMT_CUDA: return AV_HWDEVICE_TYPE_CUDA; #endif // Q_OS_WIN || Q_OS_MAC } return AV_HWDEVICE_TYPE_NONE;