[x265] [PATCH] stats: fix build warning in mingw

Divya Manivannan divya at multicorewareinc.com
Fri Jun 12 11:14:49 CEST 2015


# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1434099421 -19800
#      Fri Jun 12 14:27:01 2015 +0530
# Node ID 54c798d021019d820224bdd74cb78e20bf317fc8
# Parent  2cd9183df03edff0b148bab6e133dfe1ae4f69a1
stats: fix build warning in mingw

shadowed declaration warning for i variable is removed

diff -r 2cd9183df03e -r 54c798d02101 source/x265.cpp
--- a/source/x265.cpp	Thu Jun 11 17:06:46 2015 +0530
+++ b/source/x265.cpp	Fri Jun 12 14:27:01 2015 +0530
@@ -302,7 +302,7 @@
             fprintf(csvfpt, ",");
             if (frameStats->sliceType != 'P')
             {
-                int i = 0;
+                i = 0;
                 while (frameStats->list1POC[i] != -1)
                     fprintf(csvfpt, "%d ", frameStats->list1POC[i++]);
                 fprintf(csvfpt, ",");


More information about the x265-devel mailing list