Unified · Split
| @@ -55,23 +55,6 @@ typedef struct ADecorrelateContext { · 54 unmodified lines | |||
| 55 | AVFrame *in, AVFrame *out); | 55 | AVFrame *in, AVFrame *out); |
| 56 | } ADecorrelateContext; | 56 | } ADecorrelateContext; |
| 57 | 57 | ||
| 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 | |||
| 75 | static int ap_init(APContext *ap, int fs, double delay) | 58 | static int ap_init(APContext *ap, int fs, double delay) |
| 76 | { | 59 | { |
| 77 | const int delay_samples = lrint(round(delay * fs)); | 60 | const int delay_samples = lrint(round(delay * fs)); |
| @@ -262,7 +245,7 @@ const AVFilter ff_af_adecorrelate = { · 184 unmodified lines | |||
| 262 | .uninit = uninit, | 245 | .uninit = uninit, |
| 263 | FILTER_INPUTS(inputs), | 246 | FILTER_INPUTS(inputs), |
| 264 | FILTER_OUTPUTS(outputs), | 247 | FILTER_OUTPUTS(outputs), |
| 265 | FILTER_QUERY_FUNC(query_formats), | 248 | FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP), |
| 266 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | | 249 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | |
| 267 | AVFILTER_FLAG_SLICE_THREADS, | 250 | AVFILTER_FLAG_SLICE_THREADS, |
| 268 | }; | 251 | }; |