Skip to content

Commit

Permalink
[Decode] Add more strict check for decode error
Browse files Browse the repository at this point in the history
Fixes #1434
  • Loading branch information
Jexu authored and Sherry-Lin committed Jun 21, 2022
1 parent 590ac67 commit 46888e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media_driver/agnostic/common/codec/hal/codechal_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,8 @@ MOS_STATUS CodechalDecode::GetStatusReport(
if (m_standard == CODECHAL_HEVC || m_standard == CODECHAL_VP9)
{
if ((m_decodeStatusBuf.m_decodeStatus[i].m_mmioErrorStatusReg &
m_hcpInterface->GetHcpCabacErrorFlagsMask()) != 0)
m_hcpInterface->GetHcpCabacErrorFlagsMask()) != 0
&& ((m_decodeStatusBuf.m_decodeStatus[i].m_mmioMBCountReg & 0xFFFC0000) >> 18) != 0)
{
codecStatus[j].m_codecStatus = CODECHAL_STATUS_ERROR;
codecStatus[j].m_numMbsAffected =
Expand Down

0 comments on commit 46888e8

Please sign in to comment.