History

enable the case for IDR loss

huili2 committed 12 years ago

Commit 31400541 parent 9d5bc6f4 files · +44 −17Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+5−3
@@ -373,12 +373,14 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 372 unmodified lines
373 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.373 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
374 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||374 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
375 (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) {375 (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) {
376 if (m_pDecContext->iErrorConMethod == ERROR_CON_DISABLE) {
376#ifdef LONG_TERM_REF377#ifdef LONG_TERM_REF
377 m_pDecContext->bParamSetsLostFlag = true;378 m_pDecContext->bParamSetsLostFlag = true;
378#else379#else
379 m_pDecContext->bReferenceLostAtT0Flag = true;380 m_pDecContext->bReferenceLostAtT0Flag = true;
380#endif381#endif
381 ResetParameterSetsState (m_pDecContext); //initial SPS&PPS ready flag382 ResetParameterSetsState (m_pDecContext); //initial SPS&PPS ready flag
383 }
382 }384 }
383 385
384 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "decode failed, failure type:%d \n",386 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "decode failed, failure type:%d \n",

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