Fix a "mixing declarations and code is incompatible with standards before C99" warning.
Unified · Split
| @@ -151,6 +151,7 @@ static int query_formats(AVFilterContext *ctx) · 150 unmodified lines | |||
| 151 | 151 | ||
| 152 | static int filter_frame(AVFilterLink *outlink, AVFrame *buf) | 152 | static int filter_frame(AVFilterLink *outlink, AVFrame *buf) |
| 153 | { | 153 | { |
| 154 | AVFrame *buf_out; | ||
| 154 | AVFilterContext *ctx = outlink->src; | 155 | AVFilterContext *ctx = outlink->src; |
| 155 | ChannelSplitContext *s = ctx->priv; | 156 | ChannelSplitContext *s = ctx->priv; |
| 156 | const int i = FF_OUTLINK_IDX(outlink); | 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 | av_assert1(channel >= 0); | 161 | av_assert1(channel >= 0); |
| 161 | 162 | ||
| 162 | AVFrame *buf_out = av_frame_clone(buf); | 163 | buf_out = av_frame_clone(buf); |
| 163 | if (!buf_out) | 164 | if (!buf_out) |
| 164 | return AVERROR(ENOMEM); | 165 | return AVERROR(ENOMEM); |
| 165 | 166 | ||