History

merge bit_stream.h for encoder&decoder

huili2 committed 11 years ago

Commit ed1140b1 parent 585855b29 files · +350 −482Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 29 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−2
@@ -3366,11 +3366,11 @@ int32_t WritePadding (sWelsEncCtx* pCtx, int32_t iLen, int32_t& iSize) { · 3365 unmodified lines
3366 iNal = pCtx->pOut->iNalIndex;3366 iNal = pCtx->pOut->iNalIndex;
3367 pBs = &pCtx->pOut->sBsWrite; // SBitStringAux instance for non VCL NALs decoding3367 pBs = &pCtx->pOut->sBsWrite; // SBitStringAux instance for non VCL NALs decoding
3368 3368
3369 if ((pBs->pBufEnd - pBs->pBufPtr) < iLen || iNal >= pCtx->pOut->iCountNals) {3369 if ((pBs->pEndBuf - pBs->pCurBuf) < iLen || iNal >= pCtx->pOut->iCountNals) {
3370#if GOM_TRACE_FLAG3370#if GOM_TRACE_FLAG
3371 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,3371 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,
3372 "[RC] paddingcal pBuffer overflow, bufferlen=%lld, paddinglen=%d, iNalIdx= %d, iCountNals= %d",3372 "[RC] paddingcal pBuffer overflow, bufferlen=%lld, paddinglen=%d, iNalIdx= %d, iCountNals= %d",
3373 static_cast<long long int> (pBs->pBufEnd - pBs->pBufPtr), iLen, iNal, pCtx->pOut->iCountNals);3373 static_cast<long long int> (pBs->pEndBuf - pBs->pCurBuf), iLen, iNal, pCtx->pOut->iCountNals);
3374#endif3374#endif
3375 return ENC_RETURN_MEMOVERFLOWFOUND;3375 return ENC_RETURN_MEMOVERFLOWFOUND;
3376 }3376 }

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