modify EC init position
Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 2 files). Show all
Unified · Split
| @@ -459,7 +459,6 @@ int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) { · 458 unmodified lines | ||
| 459 | 459 | //initial MC function pointer-- |
| 460 | 460 | int iRet = ERR_NONE; |
| 461 | 461 | InitMcFunc (& (pCtx->sMcFunc), pCtx->uiCpuFlag); |
| 462 | − InitErrorCon (pCtx); | |
| 463 | 462 | |
| 464 | 463 | InitExpandPictureFunc (& (pCtx->sExpandPicFunc), pCtx->uiCpuFlag); |
| 465 | 464 | AssignFuncPointerForRec (pCtx); |
| @@ -525,6 +524,7 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 59 unmodified lines | ||
| 525 | 524 | |
| 526 | 525 | if (pCtx->bParseOnly) //parse only, disable EC method |
| 527 | 526 | pCtx->eErrorConMethod = ERROR_CON_DISABLE; |
| 527 | + InitErrorCon (pCtx); | |
| 528 | 528 | |
| 529 | 529 | if (VIDEO_BITSTREAM_SVC == pCtx->pParam->sVideoProperty.eVideoBsType || |
| 530 | 530 | VIDEO_BITSTREAM_AVC == pCtx->pParam->sVideoProperty.eVideoBsType) { |