Skip to content

Commit 77a27cb

Browse files
committed
Fix a bug which seems due to a typo in WelsReorderRefList2()
This fixes the fuzzing test failure. Addresses: #3772
1 parent fc1f770 commit 77a27cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codec/decoder/core/src/manage_dec_ref.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ int32_t WelsReorderRefList2 (PWelsDecoderContext pCtx) {
566566
k = iCount;
567567
for (j = k; j <= iRefCount; j++) {
568568
if (ppRefList[j] != NULL) {
569-
if (!ppRefList[j]->bIsLongRef || ppLongRefList[j]->uiLongTermPicNum != (uint32_t)iPredFrameNum)
569+
if (!ppRefList[j]->bIsLongRef || ppRefList[j]->uiLongTermPicNum != (uint32_t)iPredFrameNum)
570570
ppRefList[k++] = ppRefList[j];
571571
}
572572
}

0 commit comments

Comments
 (0)