History

avfilter/af_silencedetect: support all channel counts

Paul B Mahol committed 5 years ago

Commit ba3c09b1 parent a311dfc1 file · +1 −7Browse files

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

Unified · Split

libavfilter/af_silencedetect.c+1−7
@@ -197,7 +197,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 196 unmodified lines
197197
198198 static int query_formats(AVFilterContext *ctx)
199199 {
200− AVFilterChannelLayouts *layouts = NULL;
201200 static const enum AVSampleFormat sample_fmts[] = {
202201 AV_SAMPLE_FMT_DBL,
203202 AV_SAMPLE_FMT_FLT,
@@ -205,12 +204,7 @@ static int query_formats(AVFilterContext *ctx) · 1 unmodified line
205204 AV_SAMPLE_FMT_S16,
206205 AV_SAMPLE_FMT_NONE
207206 };
208− int ret;
209−
210− layouts = ff_all_channel_layouts();
211− if (!layouts)
212− return AVERROR(ENOMEM);
213− ret = ff_set_common_channel_layouts(ctx, layouts);
207+ int ret = ff_set_common_all_channel_counts(ctx);
214208 if (ret < 0)
215209 return ret;
216210

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