History

Use the right data type for a local variable

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.

Martin Storsjö committed 12 years ago

Commit f0240ef1 parent 388a93f1 file · +1 −1Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−1
@@ -3730,7 +3730,7 @@ int32_t DynSliceRealloc (sWelsEncCtx* pCtx, · 3729 unmodified lines
3730 if (NULL == pSlice)3730 if (NULL == pSlice)
3731 return ENC_RETURN_MEMALLOCERR;3731 return ENC_RETURN_MEMALLOCERR;
3732 memcpy (pSlice, pCurLayer->sLayerInfo.pSliceInLayer, sizeof (SSlice) * iMaxSliceNumOld);3732 memcpy (pSlice, pCurLayer->sLayerInfo.pSliceInLayer, sizeof (SSlice) * iMaxSliceNumOld);
3733 uint32_t uiSliceIdx;3733 int32_t uiSliceIdx;
3734 uiSliceIdx = iMaxSliceNumOld;3734 uiSliceIdx = iMaxSliceNumOld;
3735 SSlice* pBaseSlice = &pCurLayer->sLayerInfo.pSliceInLayer[0];3735 SSlice* pBaseSlice = &pCurLayer->sLayerInfo.pSliceInLayer[0];
3736 SSliceHeaderExt* pBaseSHExt = &pBaseSlice->sSliceHeaderExt;3736 SSliceHeaderExt* pBaseSHExt = &pBaseSlice->sSliceHeaderExt;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t