Merge pull request #2047 from huili2/T1_error_handling
bugfix for T1 error decoder dealing
This commit is contained in:
commit
3c06753dcc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user