Fix compilation on gcc 2.95.3 (still supported) broken by r21077,
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 8 Jan 2010 08:19:18 +0000 (08:19 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 8 Jan 2010 08:19:18 +0000 (08:19 +0000)
which was due to declaring variable after code.

Originally committed as revision 21086 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/formats.c

index e175cd3..2a9bdb0 100644 (file)
@@ -133,10 +133,12 @@ static int find_ref_index(AVFilterFormats **ref)
 
 void avfilter_formats_unref(AVFilterFormats **ref)
 {
+    int idx;
+
     if (!*ref)
         return;
 
-    int idx = find_ref_index(ref);
+    idx = find_ref_index(ref);
 
     if(idx >= 0)
         memmove((*ref)->refs + idx, (*ref)->refs + idx+1,