ref: 821a0c981ba09e4fb608ae443dc33c12cac70011
parent: 2e8e0d0a280af11c9957596795a8a80414bf6872
parent: 18a595468f9aab0477806155f792cf68b5bef86e
author: huili2 <huili2@cisco.com>
date: Tue Mar 17 12:34:38 EDT 2015
Merge pull request #1862 from mstorsjo/avoid-variable-shadowing Avoid shadowing variables within functions
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -3398,7 +3398,7 @@
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));
EXPECT_TRUE (pBsBuf[iIdx] != NULL);