Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 5 files). Show all
Unified · Split
| @@ -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 function | 366 | 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 currently | 370 | NAL_UNIT_UNSPEC_0; //for NBR, IDR frames are expected to decode as followed if error decoding an IDR currently |