Skip to content

Commit

Permalink
[CP] Fix decode caps query issue(CL#805924)
Browse files Browse the repository at this point in the history
Fix decode caps query issue

Change-Id: I98b310e7abc0e0de1545388b2759b30bdb8db04d
  • Loading branch information
RachelChengRJ authored and Sherry-Lin committed Oct 9, 2018
1 parent f093f2f commit 60b1e83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media_driver/linux/common/ddi/media_libva_caps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ VAStatus MediaLibvaCaps::CreateEncAttributes(
attrib.value = VA_ATTRIB_NOT_SUPPORTED;
if (m_isEntryptSupported)
{
attrib.value = 0;
uint32_t encryptTypes[3] = {0};
int32_t numTypes = m_CapsCp->GetEncryptionTypes(profile,
encryptTypes, 3);
Expand Down Expand Up @@ -883,10 +884,10 @@ VAStatus MediaLibvaCaps::CreateDecAttributes(
(*attribList)[attrib.type] = attrib.value;

attrib.type = VAConfigAttribEncryption;

attrib.value = VA_ATTRIB_NOT_SUPPORTED;
if (m_isEntryptSupported)
{
attrib.value = 0;
uint32_t encryptTypes[3] = {0};
int32_t numTypes = m_CapsCp->GetEncryptionTypes(profile,
encryptTypes, 3);
Expand Down

0 comments on commit 60b1e83

Please sign in to comment.