There is already a variable int iIdx declared just a few lines above.
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3398,7 +3398,7 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC_SPS_PPS_LISTING) { · 3397 unmodified lines | |||
| 3398 | int iIdx = 0; | 3398 | int iIdx = 0; |
| 3399 | 3399 | ||
| 3400 | //create decoder | 3400 | //create decoder |
| 3401 | for (int iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { | 3401 | for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { |
| 3402 | pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2)); | 3402 | pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2)); |
| 3403 | EXPECT_TRUE (pBsBuf[iIdx] != NULL); | 3403 | EXPECT_TRUE (pBsBuf[iIdx] != NULL); |
| 3404 | 3404 | ||