Fix a "mixing declarations and code is incompatible with standards before C99" warning.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -151,6 +151,7 @@ static int query_formats(AVFilterContext *ctx) · 150 unmodified lines | ||
| 151 | 151 | |
| 152 | 152 | static int filter_frame(AVFilterLink *outlink, AVFrame *buf) |
| 153 | 153 | { |
| 154 | + AVFrame *buf_out; | |
| 154 | 155 | AVFilterContext *ctx = outlink->src; |
| 155 | 156 | ChannelSplitContext *s = ctx->priv; |
| 156 | 157 | const int i = FF_OUTLINK_IDX(outlink); |
| @@ -159,7 +160,7 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf) · 2 unmodified lines | ||
| 159 | 160 | |
| 160 | 161 | av_assert1(channel >= 0); |
| 161 | 162 | |
| 162 | − AVFrame *buf_out = av_frame_clone(buf); | |
| 163 | + buf_out = av_frame_clone(buf); | |
| 163 | 164 | if (!buf_out) |
| 164 | 165 | return AVERROR(ENOMEM); |
| 165 | 166 | |