]> git.sesse.net Git - nageru/blobdiff - shared/va_display.cpp
Fix autodetection of VA-API H.264 encoders without the right profile support.
[nageru] / 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;
        }