OSDN Git Service

remove declaration inside for(), i is already declared
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 11 Nov 2010 21:29:37 +0000 (21:29 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 11 Nov 2010 21:29:37 +0000 (21:29 +0000)
Originally committed as revision 25722 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/parseutils.c

index 6609f08..c78b64a 100644 (file)
@@ -295,7 +295,7 @@ int main(void)
 
         av_log_set_level(AV_LOG_DEBUG);
 
-        for (int i = 0;  i < FF_ARRAY_ELEMS(color_names); i++) {
+        for (i = 0;  i < FF_ARRAY_ELEMS(color_names); i++) {
             if (av_parse_color(rgba, color_names[i], NULL) >= 0)
                 printf("%s -> R(%d) G(%d) B(%d) A(%d)\n", color_names[i], rgba[0], rgba[1], rgba[2], rgba[3]);
         }