Merge pull request #1795 from mstorsjo/avoid-variable-shadowing

Avoid declaring a new variable shadowing an existing one in the same function
This commit is contained in:
sijchen 2015-02-04 17:57:38 +08:00
commit 09518da545

View File

@ -3175,7 +3175,7 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC) {
int iIdx = 0;
//create decoder
for (int iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2));
aLen[iIdx] = 0;