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
33663366 iNal = pCtx->pOut->iNalIndex;
33673367 pBs = &pCtx->pOut->sBsWrite; // SBitStringAux instance for non VCL NALs decoding
33683368
3369− if ((pBs->pBufEnd - pBs->pBufPtr) < iLen || iNal >= pCtx->pOut->iCountNals) {
3369+ if ((pBs->pEndBuf - pBs->pCurBuf) < iLen || iNal >= pCtx->pOut->iCountNals) {
33703370 #if GOM_TRACE_FLAG
33713371 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,
33723372 "[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);
33743374 #endif
33753375 return ENC_RETURN_MEMOVERFLOWFOUND;
33763376 }

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