summaryrefslogtreecommitdiff
path: root/libavfilter/formats.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-08 08:19:18 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-08 08:19:18 +0000
commitd3c01751a36d8bd7a4b9381d8e59a790b80e5040 (patch)
tree6e3da6a94ddcb9603b998874000bc35429145b2b /libavfilter/formats.c
parentd987a9e9ad9516515e2d21ff6a134a836aecda29 (diff)
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
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r--libavfilter/formats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index e175cd3314..2a9bdb0bd0 100644
--- a/libavfilter/formats.c
+++ b/libavfilter/formats.c
@@ -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,