Merge pull request #2047 from huili2/T1_error_handling

bugfix for T1 error decoder dealing
This commit is contained in:
ruil2 2015-07-23 17:29:09 +08:00
commit 3c06753dcc

View File

@ -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;
}