Skip to content

Commit

Permalink
lavc video: disable x2rgb10 for QSV
Browse files Browse the repository at this point in the history
closes GH-341
  • Loading branch information
MartinPulec committed Sep 22, 2023
1 parent 02cd247 commit ad47f4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video_compress/libavcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ void apply_blacklist([[maybe_unused]] list<enum AVPixelFormat> &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;
Expand Down

0 comments on commit ad47f4a

Please sign in to comment.