Skip to content

Commit

Permalink
fix fuzz issues 18744, 18746 and 18747 by clearing info of buffered v…
Browse files Browse the repository at this point in the history
…ideo frames when decreasing DPB buffers.
  • Loading branch information
xiaotiansf committed Nov 5, 2019
1 parent 0152b1e commit 8dca82a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codec/decoder/core/src/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ static int32_t DecreasePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, co
return ERR_INFO_OUT_OF_MEMORY;
}

ResetReorderingPictureBuffers (pCtx->pPictReoderingStatus, pCtx->pPictInfoList, false);

int32_t iPrevPicIdx = -1;
for (iPrevPicIdx = 0; iPrevPicIdx < kiOldSize; ++iPrevPicIdx) {
if (pCtx->pLastDecPicInfo->pPreviousDecodedPictureInDpb == pPicOldBuf->ppPic[iPrevPicIdx]) {
Expand Down

0 comments on commit 8dca82a

Please sign in to comment.