Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
[Decode] check if the buffer size is valid
Browse files Browse the repository at this point in the history
Issue: MDP-68762
Test: manual
  • Loading branch information
chuanli1 authored and dmitryermilov committed Mar 8, 2022
1 parent 0bf5ca1 commit f577d72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ mfxStatus VideoDECODEVP8_HW::PackHeaders(mfxBitstream *p_bistream)

//////////////////////////////////////////////////////////////////
UMC::UMCVACompBuffer* compBufBs;
MFX_CHECK(p_bistream->DataLength > offset, MFX_ERR_INVALID_VIDEO_PARAM);
uint8_t *bistreamData = (uint8_t *)m_p_video_accelerator->GetCompBuffer(VASliceDataBufferType, &compBufBs, p_bistream->DataLength - offset);

uint8_t *pBuffer = (uint8_t*) p_bistream->Data;
Expand Down

0 comments on commit f577d72

Please sign in to comment.