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