Showing the changes to codec/decoder/core/src/manage_dec_ref.cpp (1 of 7 files). Show all
Unified · Split
| @@ -120,7 +120,9 @@ int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) { · 119 unmodified lines | |||
| 120 | pRef->bIsComplete = false; // Set complete flag to false for lost IDR ref picture | 120 | pRef->bIsComplete = false; // Set complete flag to false for lost IDR ref picture |
| 121 | pCtx->iErrorCode |= dsDataErrorConcealed; | 121 | pCtx->iErrorCode |= dsDataErrorConcealed; |
| 122 | bool bCopyPrevious = ((ERROR_CON_FRAME_COPY_CROSS_IDR == pCtx->eErrorConMethod) | 122 | bool bCopyPrevious = ((ERROR_CON_FRAME_COPY_CROSS_IDR == pCtx->eErrorConMethod) |
| 123 | || (ERROR_CON_SLICE_COPY_CROSS_IDR == pCtx->eErrorConMethod)) && (NULL != pCtx->pPreviousDecodedPictureInDpb); | 123 | || (ERROR_CON_SLICE_COPY_CROSS_IDR == pCtx->eErrorConMethod) |
| 124 | || (ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE == pCtx->eErrorConMethod)) | ||
| 125 | && (NULL != pCtx->pPreviousDecodedPictureInDpb); | ||
| 124 | bCopyPrevious = bCopyPrevious && (pRef->iWidthInPixel == pCtx->pPreviousDecodedPictureInDpb->iWidthInPixel) | 126 | bCopyPrevious = bCopyPrevious && (pRef->iWidthInPixel == pCtx->pPreviousDecodedPictureInDpb->iWidthInPixel) |
| 125 | && (pRef->iHeightInPixel == pCtx->pPreviousDecodedPictureInDpb->iHeightInPixel); | 127 | && (pRef->iHeightInPixel == pCtx->pPreviousDecodedPictureInDpb->iHeightInPixel); |
| 126 | if (bCopyPrevious) { | 128 | if (bCopyPrevious) { |