ref: 62c6a1e099294467132fbaef428bee24971ac683
parent: 68ff8468afa6be7f1929446b458a1d640407d06d
parent: 207082e23757a8d382ff723e1ffbbb93b206021c
author: huili2 <huili2@cisco.com>
date: Wed Jan 7 10:12:11 EST 2015
Merge pull request #1705 from HaiboZhu/Debug_Delay_mode_rawdata_update_error Fix a bug when EC disable under delay mode
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -717,6 +717,7 @@
iConsumedBytes = 0;
pDstNal[iDstIdx] = pDstNal[iDstIdx + 1] = pDstNal[iDstIdx + 2] = pDstNal[iDstIdx + 3] =
0; // set 4 reserved bytes to zero
+ pRawData->pCurPos = pDstNal + iDstIdx + 4; //init, increase 4 reserved zero bytes, used to store the next NAL
pNalPayload = ParseNalHeader (pCtx, &pCtx->sCurNalHead, pDstNal, iDstIdx, pSrcNal - 3, iSrcIdx + 3, &iConsumedBytes);
if (pNalPayload) { //parse correct
if (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1)) {
@@ -749,7 +750,6 @@
}
return pCtx->iErrorCode;
}
- pRawData->pCurPos = pDstNal + iDstIdx + 4; //init, increase 4 reserved zero bytes, used to store the next NAL
} else { /* no supplementary picture payload input, but stored a picture */
PAccessUnit pCurAu =
pCtx->pAccessUnitList; // current access unit, it will never point to NULL after decode's successful initialization