Skip to content

Commit c0ed286

Browse files
Himanshu NayakU. Artie Eoff
authored andcommitted
test/test_va_api_query_config: Changed default initialization value to VAProfileNone
In Vaapi unit test VAAPIQueryConfig, CheckEntrypointsForProfile the default initialization value chnaged from zero to VAProfileNone as zero is a valid profile matches with MPEG2Simple and this unit test misinterpret it as part of return value from vaQueryConfigProfiles Signed-off-by: Himanshu Nayak <himanshu.nayak@amd.corp-partner.google.com>
1 parent d6fff81 commit c0ed286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_va_api_query_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST_P(VAAPIQueryConfig, CheckEntrypointsForProfile)
4242
EXPECT_TRUE(maxProfiles > 0)
4343
<< maxProfiles << " profiles are reported";
4444

45-
Profiles profiles(maxProfiles);
45+
Profiles profiles(maxProfiles, VAProfileNone);
4646

4747
EXPECT_STATUS(
4848
vaQueryConfigProfiles(m_vaDisplay, profiles.data(), &numProfiles));

0 commit comments

Comments
 (0)