History

fix most of the warnings

Licai Guo committed 12 years ago

Commit a688f521 parent 2a885ca10 files · +63 −53Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+8−8
@@ -177,10 +177,10 @@ int32_t ParamValidationExt (sWelsEncCtx*pCtx,SWelsSvcCodingParam* pCodingParam) · 176 unmodified lines
177177 SDLayerParam* fDlp = &pCodingParam->sDependencyLayers[i];
178178 const int32_t kiPicWidth = fDlp->iFrameWidth;
179179 const int32_t kiPicHeight = fDlp->iFrameHeight;
180− int32_t iMbWidth = 0;
181− int32_t iMbHeight = 0;
180+ uint32_t iMbWidth = 0;
181+ uint32_t iMbHeight = 0;
182182 int32_t iMbNumInFrame = 0;
183− int32_t iMaxSliceNum = MAX_SLICES_NUM;
183+ uint32_t iMaxSliceNum = MAX_SLICES_NUM;
184184 if (kiPicWidth <= 0 || kiPicHeight <= 0) {
185185 WelsLog (pCtx, WELS_LOG_ERROR, "ParamValidationExt(), invalid %d x %d in dependency layer settings!\n", kiPicWidth, kiPicHeight);
186186 return ENC_RETURN_UNSUPPORTED_PARA;
@@ -924,10 +924,10 @@ int32_t AllocStrideTables (sWelsEncCtx** ppCtx, const int32_t kiNumSpatialLayers · 737 unmodified lines
924924 int32_t iMbWidth;
925925 int32_t iCountMbNum; // count number of SMB in each spatial
926926 int32_t iSizeAllMbAlignCache; // cache line size aligned in each spatial
927− } sMbSizeMap[MAX_DEPENDENCY_LAYER] = {0};
928− int32_t iLineSizeY[MAX_DEPENDENCY_LAYER][2] = {0};
929− int32_t iLineSizeUV[MAX_DEPENDENCY_LAYER][2] = {0};
930− int32_t iMapSpatialIdx[MAX_DEPENDENCY_LAYER][2] = {0};
927+ } sMbSizeMap[MAX_DEPENDENCY_LAYER] = {{ 0 }};
928+ int32_t iLineSizeY[MAX_DEPENDENCY_LAYER][2] = {{ 0 }};
929+ int32_t iLineSizeUV[MAX_DEPENDENCY_LAYER][2] = {{ 0 }};
930+ int32_t iMapSpatialIdx[MAX_DEPENDENCY_LAYER][2] = {{ 0 }};
931931 int32_t iSizeDec = 0;
932932 int32_t iSizeEnc = 0;
933933 int32_t iCountLayersNeedCs[2] = {0};
@@ -1668,7 +1668,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 734 unmodified lines
16681668
16691669 int32_t InitSliceSettings (SWelsSvcCodingParam* pCodingParam, const int32_t kiCpuCores, int16_t* pMaxSliceCount) {
16701670 int32_t iSpatialIdx = 0, iSpatialNum = pCodingParam->iSpatialLayerNum;
1671− int16_t iMaxSliceCount = 0;
1671+ uint16_t iMaxSliceCount = 0;
16721672
16731673 do {
16741674 SDLayerParam* pDlp = &pCodingParam->sDependencyLayers[iSpatialIdx];

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