mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-07 02:16:35 +00:00
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
This commit is contained in:
parent
d987a9e9ad
commit
d3c01751a3
@ -133,10 +133,12 @@ static int find_ref_index(AVFilterFormats **ref)
|
|||||||
|
|
||||||
void avfilter_formats_unref(AVFilterFormats **ref)
|
void avfilter_formats_unref(AVFilterFormats **ref)
|
||||||
{
|
{
|
||||||
|
int idx;
|
||||||
|
|
||||||
if (!*ref)
|
if (!*ref)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int idx = find_ref_index(ref);
|
idx = find_ref_index(ref);
|
||||||
|
|
||||||
if(idx >= 0)
|
if(idx >= 0)
|
||||||
memmove((*ref)->refs + idx, (*ref)->refs + idx+1,
|
memmove((*ref)->refs + idx, (*ref)->refs + idx+1,
|
||||||
|
Loading…
Reference in New Issue
Block a user