History

enable no-delay decoding for MSlice

huili2 committed 12 years ago

Commit 6f0cdd11 parent 7de6eb25 files · +57 −37Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−1
@@ -345,6 +345,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 344 unmodified lines
345 //For application MODE, the error detection should be added for safe.345 //For application MODE, the error detection should be added for safe.
346 //But for CONSOLE MODE, when decoding LAST AU, kiSrcLen==0 && kpSrc==NULL.346 //But for CONSOLE MODE, when decoding LAST AU, kiSrcLen==0 && kpSrc==NULL.
347 m_pDecContext->bEndOfStreamFlag = true;347 m_pDecContext->bEndOfStreamFlag = true;
348 m_pDecContext->bInstantDecFlag = true;
348 }349 }
349 350
350 ppDst[0] = ppDst[1] = ppDst[2] = NULL;351 ppDst[0] = ppDst[1] = ppDst[2] = NULL;
@@ -363,7 +364,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 12 unmodified lines
363 364
364 WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, ppDst,365 WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, ppDst,
365 pDstInfo); //iErrorCode has been modified in this function366 pDstInfo); //iErrorCode has been modified in this function
366 367 m_pDecContext->bInstantDecFlag = false; //reset no-delay flag
367 if (m_pDecContext->iErrorCode) {368 if (m_pDecContext->iErrorCode) {
368 ENalUnitType eNalType =369 ENalUnitType eNalType =
369 NAL_UNIT_UNSPEC_0; //for NBR, IDR frames are expected to decode as followed if error decoding an IDR currently370 NAL_UNIT_UNSPEC_0; //for NBR, IDR frames are expected to decode as followed if error decoding an IDR currently

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