History

Fix a bug when EC disable under delay mode (buf point not update when early exit)

Haibo Zhu committed 11 years ago

Commit 207082e1 parent ac08cc41 file · +1 −1Browse files

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

Unified · Split

codec/decoder/core/src/decoder.cpp+1−1
@@ -717,6 +717,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 716 unmodified lines
717 iConsumedBytes = 0;717 iConsumedBytes = 0;
718 pDstNal[iDstIdx] = pDstNal[iDstIdx + 1] = pDstNal[iDstIdx + 2] = pDstNal[iDstIdx + 3] =718 pDstNal[iDstIdx] = pDstNal[iDstIdx + 1] = pDstNal[iDstIdx + 2] = pDstNal[iDstIdx + 3] =
719 0; // set 4 reserved bytes to zero719 0; // set 4 reserved bytes to zero
720 pRawData->pCurPos = pDstNal + iDstIdx + 4; //init, increase 4 reserved zero bytes, used to store the next NAL
720 pNalPayload = ParseNalHeader (pCtx, &pCtx->sCurNalHead, pDstNal, iDstIdx, pSrcNal - 3, iSrcIdx + 3, &iConsumedBytes);721 pNalPayload = ParseNalHeader (pCtx, &pCtx->sCurNalHead, pDstNal, iDstIdx, pSrcNal - 3, iSrcIdx + 3, &iConsumedBytes);
721 if (pNalPayload) { //parse correct722 if (pNalPayload) { //parse correct
722 if (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1)) {723 if (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1)) {
@@ -749,7 +750,6 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 26 unmodified lines
749 }750 }
750 return pCtx->iErrorCode;751 return pCtx->iErrorCode;
751 }752 }
752 pRawData->pCurPos = pDstNal + iDstIdx + 4; //init, increase 4 reserved zero bytes, used to store the next NAL
753 } else { /* no supplementary picture payload input, but stored a picture */753 } else { /* no supplementary picture payload input, but stored a picture */
754 PAccessUnit pCurAu =754 PAccessUnit pCurAu =
755 pCtx->pAccessUnitList; // current access unit, it will never point to NULL after decode's successful initialization755 pCtx->pAccessUnitList; // current access unit, it will never point to NULL after decode's successful initialization

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