Showing the changes to codec/decoder/core/src/manage_dec_ref.cpp (1 of 1 file). Show all
Unified · Split
| @@ -197,7 +197,8 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { · 196 unmodified lines | ||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | if (pRefPicListReorderSyn->bRefPicListReorderingFlag[LIST_0]) { |
| 200 | − while (pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc != 3) { | |
| 200 | + while ((iReorderingIndex < iMaxRefIdx) | |
| 201 | + && (pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc != 3)) { | |
| 201 | 202 | uint16_t uiReorderingOfPicNumsIdc = |
| 202 | 203 | pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiReorderingOfPicNumsIdc; |
| 203 | 204 | if (uiReorderingOfPicNumsIdc < 2) { |