Add additional function PrefetchLastPicForThread and variables for better control of threaded decoding in the case of multi-slice with one slice group contains one slice.
Showing the changes to codec/decoder/core/src/manage_dec_ref.cpp (1 of 9 files). Show all
Unified · Split
| @@ -150,7 +150,7 @@ static int32_t WelsCheckAndRecoverForFutureDecoding (PWelsDecoderContext pCtx) { · 149 unmodified lines | ||
| 150 | 150 | && pCtx->eSliceType != SI_SLICE)) { |
| 151 | 151 | if (pCtx->pParam->eEcActiveIdc != |
| 152 | 152 | ERROR_CON_DISABLE) { //IDR lost!, recover it for future decoding with data all set to 0 |
| 153 | − PPicture pRef = pCtx->pThreadCtx != NULL ? PrefetchPicForThread (pCtx->pPicBuff) : PrefetchPic (pCtx->pPicBuff); | |
| 153 | + PPicture pRef = PrefetchPic (pCtx->pPicBuff); | |
| 154 | 154 | if (pRef != NULL) { |
| 155 | 155 | // IDR lost, set new |
| 156 | 156 | pRef->bIsComplete = false; // Set complete flag to false for lost IDR ref picture |