shithub: openh264

Download patch

ref: 09518da5457fcf0960ed0e233e26c5bcfaa02a14
parent: dc067286b3bfd3c2f3178a51d54c0a5f495cc56a
parent: 6c1aa2943196eab4c4b11815d69ac978484bad64
author: sijchen <sijchen@cisco.com>
date: Wed Feb 4 12:57:38 EST 2015

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

Avoid declaring a new variable shadowing an existing one in the same function

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -3175,7 +3175,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));
     aLen[iIdx] = 0;