diff --git a/test/test_va_api_query_config.cpp b/test/test_va_api_query_config.cpp index 39a8d1a..51eff18 100644 --- a/test/test_va_api_query_config.cpp +++ b/test/test_va_api_query_config.cpp @@ -50,6 +50,8 @@ TEST_P(VAAPIQueryConfig, CheckEntrypointsForProfile) EXPECT_TRUE(numProfiles > 0) << numProfiles << " profiles are supported by driver"; + profiles.resize(numProfiles); + const int maxEntrypoints = vaMaxNumEntrypoints(m_vaDisplay); EXPECT_TRUE(maxEntrypoints > 0) << maxEntrypoints << " entrypoints are reported";