From: Steinar H. Gunderson Date: Sat, 15 Apr 2023 22:50:34 +0000 (+0200) Subject: Fix autodetection of VA-API H.264 encoders without the right profile support. X-Git-Tag: 2.2.1~6 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=c30205e449b4f09023b2970022ef89141131b2e6 Fix autodetection of VA-API H.264 encoders without the right profile support. These would sometimes be chosen, and then error out when actually trying to use them. --- diff --git a/shared/va_display.cpp b/shared/va_display.cpp index c74d759..dac1dc0 100644 --- a/shared/va_display.cpp +++ b/shared/va_display.cpp @@ -104,7 +104,7 @@ unique_ptr try_open_va( break; } } - if (!found_profile) { + if (found_profile == VAProfileNone) { if (error != nullptr) *error = "Can't find entry points for suitable codec profile"; return nullptr; }