shithub: openh264

Download patch

ref: 18a595468f9aab0477806155f792cf68b5bef86e
parent: b66703133e92cde6b62e436be1ac8e022766d923
author: Martin Storsjö <[email protected]>
date: Tue Mar 17 05:44:08 EDT 2015

Avoid shadowing variables within functions

There is already a variable int iIdx declared just a few lines
above.

--- 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);