From d3c01751a36d8bd7a4b9381d8e59a790b80e5040 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 8 Jan 2010 08:19:18 +0000 Subject: 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 --- libavfilter/formats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavfilter/formats.c') 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, -- cgit v1.2.3