ref: a860ff120e5ac871f650115e9fd1f02c97bdb08e
parent: d8080adb4ce6ebf06386dc367479fff6de9cc367
parent: 71ab928ca38410e2cfae8c7642ab776b724b3b0f
author: ruil2 <[email protected]>
date: Wed Apr 2 09:06:44 EDT 2014
Merge pull request #615 from volvet/clean-warning fix compile warnings
--- a/codec/encoder/core/src/svc_motion_estimate.cpp
+++ b/codec/encoder/core/src/svc_motion_estimate.cpp
@@ -547,7 +547,7 @@
void MotionEstimateFeatureFullSearch( SFeatureSearchIn &sFeatureSearchIn,
const uint32_t kuiMaxSearchPoint,
SWelsME* pMe) {
- SFeatureSearchOut sFeatureSearchOut = {0};//TODO: this can be refactored and removed
+ SFeatureSearchOut sFeatureSearchOut = { { 0 } };//TODO: this can be refactored and removed
sFeatureSearchOut.uiBestSadCost = pMe->uiSadCost;
sFeatureSearchOut.sBestMv = pMe->sMv;
sFeatureSearchOut.pBestRef = pMe->pRefMb;
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -1013,7 +1013,7 @@
return LARGE_CHANGED_SCENE;
}
- SRefInfoParam sAvailableRefList[MAX_REF_PIC_COUNT] = {0};
+ SRefInfoParam sAvailableRefList[MAX_REF_PIC_COUNT] = { { 0 } };
int32_t iAvailableRefNum = 0;
int32_t iAvailableSceneRefNum = 0;
@@ -1020,8 +1020,8 @@
int32_t iSceneChangeMethodIdx = METHOD_SCENE_CHANGE_DETECTION_SCREEN;
SSceneChangeResult sSceneChangeResult = {SIMILAR_SCENE, 0, 0, NULL};
- SPixMap sSrcMap = {0};
- SPixMap sRefMap = {0};
+ SPixMap sSrcMap = { { 0 } };
+ SPixMap sRefMap = { { 0 } };
SRefJudgement sLtrJudgement;
SRefJudgement sSceneLtrJudgement;
SRefInfoParam sLtrSaved = {0};
@@ -1030,7 +1030,7 @@
int32_t iNumOfLargeChange = 0, iNumOfMediumChangeToLtr = 0;
bool bBestRefIsLtr = false, bIsClosestLtrFrame = false;
- int32_t ret = 1, iScdIdx = 0, i = 0;
+ int32_t ret = 1, iScdIdx = 0;
SPicture* pRefPic = NULL;
SRefInfoParam* pRefPicInfo = NULL;