aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2024-07-12 17:47:14 +0200
committerLeo Izen <leo.izen@gmail.com>2024-07-14 15:43:01 -0400
commit613c85a8f5b296c2b79fc0abfd98fccf962bb334 (patch)
treee91e85c19a0f0918678fdd975aa06d6527c3a694
parentc654e37254efb6de5d3f1355dd7936979dd0dca3 (diff)
downloadffmpeg-613c85a8f5b296c2b79fc0abfd98fccf962bb334.tar.gz
avfilter/af_channelsplit: fix mixed declaration and code
Fix a "mixing declarations and code is incompatible with standards before C99" warning.
-rw-r--r--libavfilter/af_channelsplit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c
index 43b2667750..b91195a4c6 100644
--- a/libavfilter/af_channelsplit.c
+++ b/libavfilter/af_channelsplit.c
@@ -151,6 +151,7 @@ static int query_formats(AVFilterContext *ctx)
static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
{
+ AVFrame *buf_out;
AVFilterContext *ctx = outlink->src;
ChannelSplitContext *s = ctx->priv;
const int i = FF_OUTLINK_IDX(outlink);
@@ -159,7 +160,7 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
av_assert1(channel >= 0);
- AVFrame *buf_out = av_frame_clone(buf);
+ buf_out = av_frame_clone(buf);
if (!buf_out)
return AVERROR(ENOMEM);