History

Bugzilla 1479656, 1485229 and 1486223 fixes without mixing with other update.

xiaotiansf committed 7 years ago

Commit 9461ae81 parent 63a546e4 files · +17 −16Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 4 files). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+7−4
@@ -381,10 +381,13 @@ void CreateImplicitWeightTable (PWelsDecoderContext pCtx) { · 380 unmodified lines
381381 if (pCurDqLayer->bUseWeightedBiPredIdc && pSliceHeader->pPps->uiWeightedBipredIdc == 2) {
382382 int32_t iPoc = pSliceHeader->iPicOrderCntLsb;
383383
384− if (pSliceHeader->uiRefCount[0] == 1 && pSliceHeader->uiRefCount[1] == 1
385− && pCtx->sRefPic.pRefList[LIST_0][0]->iFramePoc + pCtx->sRefPic.pRefList[LIST_1][0]->iFramePoc == 2 * iPoc) {
386− pCurDqLayer->bUseWeightedBiPredIdc = false;
387− return;
384+ //fix Bugzilla 1485229 check if pointers are NULL
385+ if (pCtx->sRefPic.pRefList[LIST_0][0] && pCtx->sRefPic.pRefList[LIST_1][0]) {
386+ if (pSliceHeader->uiRefCount[0] == 1 && pSliceHeader->uiRefCount[1] == 1
387+ && pCtx->sRefPic.pRefList[LIST_0][0]->iFramePoc + pCtx->sRefPic.pRefList[LIST_1][0]->iFramePoc == 2 * iPoc) {
388+ pCurDqLayer->bUseWeightedBiPredIdc = false;
389+ return;
390+ }
388391 }
389392
390393 pCurDqLayer->pPredWeightTable->uiLumaLog2WeightDenom = 5;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t