avoid using the same picture buff for prev pic and curr pic
Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 3 files). Show all
Unified · Split
| @@ -2143,6 +2143,7 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 2142 unmodified lines | ||
| 2143 | 2143 | } else if (pCtx->eErrorConMethod == ERROR_CON_SLICE_MV_COPY_CROSS_IDR |
| 2144 | 2144 | || pCtx->eErrorConMethod == ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE) { |
| 2145 | 2145 | pCtx->pPreviousDecodedPictureInDpb = pCtx->pDec; //save ECed pic for future MV Copy use |
| 2146 | + pCtx->pDec = NULL; | |
| 2146 | 2147 | } |
| 2147 | 2148 | } else { |
| 2148 | 2149 | if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo)) |