Skip to content

Commit

Permalink
[Decode] access volation when get status report
Browse files Browse the repository at this point in the history
Fixes: intel#1227

Signed-off-by: Xu, Zhengguo <[email protected]>
  • Loading branch information
Jexu committed Aug 12, 2021
1 parent d8f9e25 commit f4bb274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_driver/linux/common/codec/ddi/media_libva_decoder.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ VAStatus DdiDecode_StatusReport(PDDI_MEDIA_CONTEXT mediaCtx, CodechalDecode *dec
{
if (mediaSurfaceHeapElmt != nullptr &&
mediaSurfaceHeapElmt->pSurface != nullptr &&
bo == mediaSurfaceHeapElmt->pSurface->bo)
mediaSurfaceHeapElmt->pSurface == surface)
{
mediaSurfaceHeapElmt->pSurface->curStatusReport.decode.status = (uint32_t)tempNewReport.m_codecStatus;
mediaSurfaceHeapElmt->pSurface->curStatusReport.decode.errMbNum = (uint32_t)tempNewReport.m_numMbsAffected;
Expand Down Expand Up @@ -385,7 +385,7 @@ VAStatus DdiDecode_StatusReport(PDDI_MEDIA_CONTEXT mediaCtx, DecodePipelineAdapt
{
if (mediaSurfaceHeapElmt != nullptr &&
mediaSurfaceHeapElmt->pSurface != nullptr &&
bo == mediaSurfaceHeapElmt->pSurface->bo)
mediaSurfaceHeapElmt->pSurface == surface)
{
mediaSurfaceHeapElmt->pSurface->curStatusReport.decode.status = (uint32_t)tempNewReport.codecStatus;
mediaSurfaceHeapElmt->pSurface->curStatusReport.decode.errMbNum = (uint32_t)tempNewReport.numMbsAffected;
Expand Down

0 comments on commit f4bb274

Please sign in to comment.