History

avfilter/af_adecorrelate: Store format in filter, remove query func

Andreas Rheinhardt committed 5 years ago

Commit 063af691 parent b4ab91b1 file · +1 −18Browse files

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

Unified · Split

libavfilter/af_adecorrelate.c+1−18
@@ -55,23 +55,6 @@ typedef struct ADecorrelateContext { · 54 unmodified lines
5555 AVFrame *in, AVFrame *out);
5656 } ADecorrelateContext;
5757
58−static int query_formats(AVFilterContext *ctx)
59−{
60− static const enum AVSampleFormat sample_fmts[] = {
61− AV_SAMPLE_FMT_DBLP,
62− AV_SAMPLE_FMT_NONE
63− };
64− int ret = ff_set_common_formats_from_list(ctx, sample_fmts);
65− if (ret < 0)
66− return ret;
67−
68− ret = ff_set_common_all_channel_counts(ctx);
69− if (ret < 0)
70− return ret;
71−
72− return ff_set_common_all_samplerates(ctx);
73−}
74−
7558 static int ap_init(APContext *ap, int fs, double delay)
7659 {
7760 const int delay_samples = lrint(round(delay * fs));
@@ -262,7 +245,7 @@ const AVFilter ff_af_adecorrelate = { · 184 unmodified lines
262245 .uninit = uninit,
263246 FILTER_INPUTS(inputs),
264247 FILTER_OUTPUTS(outputs),
265− FILTER_QUERY_FUNC(query_formats),
248+ FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP),
266249 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC |
267250 AVFILTER_FLAG_SLICE_THREADS,
268251 };

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