From ad47f4a2f292345e02135d30ff232bce5d60bbce Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 22 Sep 2023 15:06:31 +0200 Subject: [PATCH] lavc video: disable x2rgb10 for QSV closes GH-341 --- src/video_compress/libavcodec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_compress/libavcodec.cpp b/src/video_compress/libavcodec.cpp index 530caedfa..43d25a1d1 100644 --- a/src/video_compress/libavcodec.cpp +++ b/src/video_compress/libavcodec.cpp @@ -851,7 +851,8 @@ void apply_blacklist([[maybe_unused]] list &formats, [[maybe // macro IS_YUV444 and IS_GBRP should contain the codec - if set 1st one, picture is ok 444 YUV, second produces // incorrect colors). Anyways, even for the case #1 it is perhaps better to keep it blacklisted to allow // selection of gbrp16, which doesn't convert to YUV. - if (strstr(encoder_name, "nvenc") != nullptr) { + if (strstr(encoder_name, "nvenc") != nullptr || + strstr(encoder_name, "qsv") != nullptr) { if (formats.size() == 1) { LOG(LOG_LEVEL_WARNING) << MOD_NAME "Only one codec remaining, not blacklisting x2rgb10le!\n"; return;