diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-08 08:19:18 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-08 08:19:18 +0000 |
commit | d3c01751a36d8bd7a4b9381d8e59a790b80e5040 (patch) | |
tree | 6e3da6a94ddcb9603b998874000bc35429145b2b /libavfilter | |
parent | d987a9e9ad9516515e2d21ff6a134a836aecda29 (diff) | |
download | ffmpeg-d3c01751a36d8bd7a4b9381d8e59a790b80e5040.tar.gz |
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')
-rw-r--r-- | libavfilter/formats.c | 4 |
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, |