Skip to content

Commit 63db555

Browse files
Potential bug fix (#3818)
1 parent 1c47e71 commit 63db555

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codec/decoder/core/src/decoder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,10 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in
846846
return pCtx->iErrorCode;
847847
}
848848

849+
if (pCtx->iErrorCode != ERR_NONE && !(pCtx->iErrorCode & dsDataErrorConcealed)) {
850+
return pCtx->iErrorCode;
851+
}
852+
849853
pDstNal += (iDstIdx + 4); //init, increase 4 reserved zero bytes, used to store the next NAL
850854
if ((iSrcLength - iSrcConsumed + 4) > (pRawData->pEnd - pDstNal)) {
851855
pDstNal = pRawData->pCurPos = pRawData->pHead;

0 commit comments

Comments
 (0)