Showing the changes to codec/decoder/plus (1 of 1 file). Show all
Unified · Split
| @@ -811,13 +811,6 @@ DECODING_STATE CWelsDecoder::DecodeFrame2WithCtx (PWelsDecoderContext pDecContex · 810 unmodified lines | |||
| 811 | } | 811 | } |
| 812 | return dsErrorFree; | 812 | return dsErrorFree; |
| 813 | } | 813 | } |
| 814 | if ((pDecContext->iErrorCode & (dsBitstreamError | dsDataErrorConcealed)) && pDecContext->eSliceType == B_SLICE) { | ||
| 815 | if (ResetDecoder (pDecContext)) { | ||
| 816 | pDstInfo->iBufferStatus = 0; | ||
| 817 | return (DECODING_STATE)pDecContext->iErrorCode; | ||
| 818 | } | ||
| 819 | return dsErrorFree; | ||
| 820 | } | ||
| 821 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. | 814 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. |
| 822 | if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) || | 815 | if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) || |
| 823 | (VIDEO_BITSTREAM_AVC == pDecContext->eVideoType)) { | 816 | (VIDEO_BITSTREAM_AVC == pDecContext->eVideoType)) { |