Originally committed as revision 21086 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -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, |