Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 14 files). Show all
Unified · Split
| @@ -404,7 +404,7 @@ void CreateImplicitWeightTable (PWelsDecoderContext pCtx) { · 403 unmodified lines | ||
| 404 | 404 | //fix Bugzilla 1485229 check if pointers are NULL |
| 405 | 405 | if (pCtx->sRefPic.pRefList[LIST_0][0] && pCtx->sRefPic.pRefList[LIST_1][0]) { |
| 406 | 406 | if (pSliceHeader->uiRefCount[0] == 1 && pSliceHeader->uiRefCount[1] == 1 |
| 407 | − && pCtx->sRefPic.pRefList[LIST_0][0]->iFramePoc + pCtx->sRefPic.pRefList[LIST_1][0]->iFramePoc == 2 * iPoc) { | |
| 407 | + && int64_t(pCtx->sRefPic.pRefList[LIST_0][0]->iFramePoc) + int64_t(pCtx->sRefPic.pRefList[LIST_1][0]->iFramePoc) == 2 * int64_t(iPoc)) { | |
| 408 | 408 | pCurDqLayer->bUseWeightedBiPredIdc = false; |
| 409 | 409 | return; |
| 410 | 410 | } |