Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 1 file). Show all
Unified · Split
| @@ -135,6 +135,7 @@ int32_t CWelsPreProcess::AllocSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCoding · 134 unmodified lines | ||
| 135 | 135 | const uint8_t kuiRefNumInTemporal = kuiLayerInTemporal + pParam->iLTRRefNum; |
| 136 | 136 | uint8_t i = 0; |
| 137 | 137 | |
| 138 | + m_uiSpatialPicNum[iDlayerIndex] = kuiRefNumInTemporal; | |
| 138 | 139 | do { |
| 139 | 140 | SPicture* pPic = AllocPicture (pMa, kiPicWidth, kiPicHeight, false, 0); |
| 140 | 141 | WELS_VERIFY_RETURN_IF (1, (NULL == pPic)) |
| @@ -147,7 +148,6 @@ int32_t CWelsPreProcess::AllocSpatialPictures (sWelsEncCtx* pCtx, SWelsSvcCoding · 6 unmodified lines | ||
| 147 | 148 | else |
| 148 | 149 | m_uiSpatialLayersInTemporal[iDlayerIndex] = kuiLayerInTemporal; |
| 149 | 150 | |
| 150 | − m_uiSpatialPicNum[iDlayerIndex] = kuiRefNumInTemporal; | |
| 151 | 151 | ++ iDlayerIndex; |
| 152 | 152 | } while (iDlayerIndex < kiDlayerCount); |
| 153 | 153 | |