]> git.sesse.net Git - nageru/commitdiff
Fix autodetection of VA-API H.264 encoders without the right profile support.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sat, 15 Apr 2023 22:50:34 +0000 (00:50 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Apr 2023 23:32:49 +0000 (01:32 +0200)
These would sometimes be chosen, and then error out when actually trying to use them.

shared/va_display.cpp

index c74d75940dea1c1e4036e4c93403162510571d46..dac1dc00ae22d1a0c793fee671e8217b19d69f97 100644 (file)
@@ -104,7 +104,7 @@ unique_ptr<VADisplayWithCleanup> 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;
        }