From c30205e449b4f09023b2970022ef89141131b2e6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 16 Apr 2023 00:50:34 +0200 Subject: [PATCH] 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. --- shared/va_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2