Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 2 files). Show all
Unified · Split
| @@ -677,8 +677,8 @@ void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) { · 676 unmodified lines | ||
| 677 | 677 | |
| 678 | 678 | |
| 679 | 679 | void UpdateDecoderStatisticsForActiveParaset(SDecoderStatistics* pDecoderStatistics, |
| 680 | − PSps pSps, PPps pPps, const int32_t iSpsId) { | |
| 681 | − pDecoderStatistics->iCurrentActiveSpsId = iSpsId; | |
| 680 | + PSps pSps, PPps pPps) { | |
| 681 | + pDecoderStatistics->iCurrentActiveSpsId = pSps->iSpsId; | |
| 682 | 682 | |
| 683 | 683 | pDecoderStatistics->iCurrentActivePpsId = pPps->iPpsId; |
| 684 | 684 | pDecoderStatistics->uiProfile = static_cast<unsigned int> (pSps->uiProfileIdc); |
| @@ -2119,8 +2119,7 @@ void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pS · 1434 unmodified lines | ||
| 2119 | 2119 | pCtx->iFrameNum = pSh->iFrameNum; |
| 2120 | 2120 | |
| 2121 | 2121 | UpdateDecoderStatisticsForActiveParaset(&(pCtx->sDecoderStatistics), |
| 2122 | − pSps, pPps, | |
| 2123 | − (pCurNal->sNalData.sVclNal.bSliceHeaderExtFlag) ? (pCurNal->sNalData.sVclNal.sSliceHeaderExt.pSubsetSps->sSps.iSpsId) : (pSps->iSpsId) ); | |
| 2122 | + pSps, pPps); | |
| 2124 | 2123 | } |
| 2125 | 2124 | |
| 2126 | 2125 | int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) { |