Merge pull request #1981 from HaiboZhu/Debug_mosaic_T30
Bug fix about PrevRefFrameNum update logic error
This commit is contained in:
commit
32d1510d29
@ -2345,6 +2345,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf
|
|||||||
}
|
}
|
||||||
|
|
||||||
// need update frame_num due current frame is well decoded
|
// need update frame_num due current frame is well decoded
|
||||||
|
if (pCurAu->pNalUnitsList[pCurAu->uiStartPos]->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc > 0)
|
||||||
pCtx->iPrevFrameNum = pSh->iFrameNum;
|
pCtx->iPrevFrameNum = pSh->iFrameNum;
|
||||||
if (pCtx->bLastHasMmco5)
|
if (pCtx->bLastHasMmco5)
|
||||||
pCtx->iPrevFrameNum = 0;
|
pCtx->iPrevFrameNum = 0;
|
||||||
@ -2403,6 +2404,7 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pCtx->pDec = NULL;
|
pCtx->pDec = NULL;
|
||||||
|
if (pAu->pNalUnitsList[pAu->uiStartPos]->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc > 0)
|
||||||
pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
|
pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
|
||||||
if (pCtx->bLastHasMmco5)
|
if (pCtx->bLastHasMmco5)
|
||||||
pCtx->iPrevFrameNum = 0;
|
pCtx->iPrevFrameNum = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user