ref: 682b0b73352b9fc6633bc74f33dea2d4fed39053
parent: aeed1fa67733afd8f6bd82480fe6a8ec2fa59f92
author: Haibo Zhu <haibozhu@cisco.com>
date: Thu Jun 4 21:32:47 EDT 2015
Bug fix about mosaic on T30 which caused by prev frame num update
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -2345,7 +2345,8 @@
}
// need update frame_num due current frame is well decoded
- pCtx->iPrevFrameNum = pSh->iFrameNum;
+ if (pCurAu->pNalUnitsList[pCurAu->uiStartPos]->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc > 0)
+ pCtx->iPrevFrameNum = pSh->iFrameNum;
if (pCtx->bLastHasMmco5)
pCtx->iPrevFrameNum = 0;
}
@@ -2403,7 +2404,8 @@
}
}
pCtx->pDec = NULL;
- pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
+ if (pAu->pNalUnitsList[pAu->uiStartPos]->sNalHeaderExt.sNalUnitHeader.uiNalRefIdc > 0)
+ pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
if (pCtx->bLastHasMmco5)
pCtx->iPrevFrameNum = 0;
}