History

avfilter/af_channelsplit: fix mixed declaration and code

Fix a "mixing declarations and code is incompatible with standards before C99" warning.

Marvin Scholz committed 2 years ago

Commit 613c85a1 parent c654e371 file · +2 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_channelsplit.c+2−1
@@ -151,6 +151,7 @@ static int query_formats(AVFilterContext *ctx) · 150 unmodified lines
151151
152152 static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
153153 {
154+ AVFrame *buf_out;
154155 AVFilterContext *ctx = outlink->src;
155156 ChannelSplitContext *s = ctx->priv;
156157 const int i = FF_OUTLINK_IDX(outlink);
@@ -159,7 +160,7 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf) · 2 unmodified lines
159160
160161 av_assert1(channel >= 0);
161162
162− AVFrame *buf_out = av_frame_clone(buf);
163+ buf_out = av_frame_clone(buf);
163164 if (!buf_out)
164165 return AVERROR(ENOMEM);
165166

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t