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