All the values assigned into this variable, and compared with this variable, are int32_t. This avoids warnings about comparison between signed and unsigned types.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3730,7 +3730,7 @@ int32_t DynSliceRealloc (sWelsEncCtx* pCtx, · 3729 unmodified lines | ||
| 3730 | 3730 | if (NULL == pSlice) |
| 3731 | 3731 | return ENC_RETURN_MEMALLOCERR; |
| 3732 | 3732 | memcpy (pSlice, pCurLayer->sLayerInfo.pSliceInLayer, sizeof (SSlice) * iMaxSliceNumOld); |
| 3733 | − uint32_t uiSliceIdx; | |
| 3733 | + int32_t uiSliceIdx; | |
| 3734 | 3734 | uiSliceIdx = iMaxSliceNumOld; |
| 3735 | 3735 | SSlice* pBaseSlice = &pCurLayer->sLayerInfo.pSliceInLayer[0]; |
| 3736 | 3736 | SSliceHeaderExt* pBaseSHExt = &pBaseSlice->sSliceHeaderExt; |