From 091805b883bd15aab93e844b604fad5ed5fce66b Mon Sep 17 00:00:00 2001 From: huili2 Date: Thu, 23 Jul 2015 11:04:23 +0800 Subject: [PATCH] bugfix for T1 error decoder dealing --- codec/decoder/core/src/decoder_core.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codec/decoder/core/src/decoder_core.cpp b/codec/decoder/core/src/decoder_core.cpp index f10dccb7..0db0ca6a 100644 --- a/codec/decoder/core/src/decoder_core.cpp +++ b/codec/decoder/core/src/decoder_core.cpp @@ -2416,8 +2416,10 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn pCtx->bFrameFinish = true; //clear frame pending status here! } else { if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo)) { - if (pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) + if ((pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) && (pCtx->sLastNalHdrExt.uiTemporalId == 0)) pCtx->iErrorCode |= dsNoParamSets; + else + pCtx->iErrorCode |= dsBitstreamError; pCtx->pDec = NULL; return false; }