avfilter/af_channelsplit: fix mixed declaration and code

Fix a "mixing declarations and code is incompatible with standards
before C99" warning.
This commit is contained in:
Marvin Scholz 2024-07-12 17:47:14 +02:00 committed by Leo Izen
parent c654e37254
commit 613c85a8f5
No known key found for this signature in database
GPG Key ID: 764E48EA48221833
1 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,7 @@ static int query_formats(AVFilterContext *ctx)
static int filter_frame(AVFilterLink *outlink, AVFrame *buf) static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
{ {
AVFrame *buf_out;
AVFilterContext *ctx = outlink->src; AVFilterContext *ctx = outlink->src;
ChannelSplitContext *s = ctx->priv; ChannelSplitContext *s = ctx->priv;
const int i = FF_OUTLINK_IDX(outlink); const int i = FF_OUTLINK_IDX(outlink);
@ -159,7 +160,7 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
av_assert1(channel >= 0); av_assert1(channel >= 0);
AVFrame *buf_out = av_frame_clone(buf); buf_out = av_frame_clone(buf);
if (!buf_out) if (!buf_out)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);