Browse code

Fix compilation on gcc 2.95.3 (still supported) broken by r21077, which was due to declaring variable after code.

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

Stefano Sabatini authored on 2010/01/08 17:19:18
Showing 1 changed files
... ...
@@ -133,10 +133,12 @@ static int find_ref_index(AVFilterFormats **ref)
133 133
 
134 134
 void avfilter_formats_unref(AVFilterFormats **ref)
135 135
 {
136
+    int idx;
137
+
136 138
     if (!*ref)
137 139
         return;
138 140
 
139
-    int idx = find_ref_index(ref);
141
+    idx = find_ref_index(ref);
140 142
 
141 143
     if(idx >= 0)
142 144
         memmove((*ref)->refs + idx, (*ref)->refs + idx+1,