Mark erroneous frame as Ref Pic into DPB
| 438 | |
| 439 | //Mark erroneous frame as Ref Pic into DPB |
| 440 | int32_t MarkECFrameAsRef (PWelsDecoderContext pCtx) { |
| 441 | int32_t iRet = WelsMarkAsRef (pCtx); |
| 442 | // Under EC mode, the ERR_INFO_DUPLICATE_FRAME_NUM does not need to be process |
| 443 | if (iRet != ERR_NONE) { |
| 444 | return iRet; |
| 445 | } |
| 446 | ExpandReferencingPicture (pCtx->pDec->pData, pCtx->pDec->iWidthInPixel, pCtx->pDec->iHeightInPixel, |
| 447 | pCtx->pDec->iLinesize, |
| 448 | pCtx->sExpandPicFunc.pfExpandLumaPicture, pCtx->sExpandPicFunc.pfExpandChromaPicture); |
| 449 | |
| 450 | return ERR_NONE; |
| 451 | } |
| 452 | |
| 453 | bool NeedErrorCon (PWelsDecoderContext pCtx) { |
| 454 | bool bNeedEC = false; |
no test coverage detected