Skip to content

Commit

Permalink
Fix a bug which seems due to a typo in WelsReorderRefList2()
Browse files Browse the repository at this point in the history
This fixes the fuzzing test failure.

Addresses: cisco#3772
  • Loading branch information
tyan0 committed Aug 4, 2024
1 parent be6ff3e commit b13b201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/decoder/core/src/manage_dec_ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ int32_t WelsReorderRefList2 (PWelsDecoderContext pCtx) {
k = iCount;
for (j = k; j <= iRefCount; j++) {
if (ppRefList[j] != NULL) {
if (!ppRefList[j]->bIsLongRef || ppLongRefList[j]->uiLongTermPicNum != (uint32_t)iPredFrameNum)
if (!ppRefList[j]->bIsLongRef || ppRefList[j]->uiLongTermPicNum != (uint32_t)iPredFrameNum)
ppRefList[k++] = ppRefList[j];
}
}
Expand Down

0 comments on commit b13b201

Please sign in to comment.