Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -526,7 +526,9 @@ int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSli · 525 unmodified lines | ||
| 526 | 526 | |
| 527 | 527 | pCtx->iPrevPicOrderCntLsb = 0; |
| 528 | 528 | pCtx->iPrevPicOrderCntMsb = 0; |
| 529 | − pCtx->pSliceHeader->iPicOrderCntLsb = 0; | |
| 529 | + pSh->iPicOrderCntLsb = 0; | |
| 530 | + if (pCtx->pSliceHeader) | |
| 531 | + pCtx->pSliceHeader->iPicOrderCntLsb = 0; | |
| 530 | 532 | } |
| 531 | 533 | ++ iIdx; |
| 532 | 534 | |