Unified · Split
| @@ -80,25 +80,6 @@ static const AVOption apsyclip_options[] = { · 79 unmodified lines | |||
| 80 | 80 | ||
| 81 | AVFILTER_DEFINE_CLASS(apsyclip); | 81 | AVFILTER_DEFINE_CLASS(apsyclip); |
| 82 | 82 | ||
| 83 | static int query_formats(AVFilterContext *ctx) | ||
| 84 | { | ||
| 85 | static const enum AVSampleFormat sample_fmts[] = { | ||
| 86 | AV_SAMPLE_FMT_FLTP, | ||
| 87 | AV_SAMPLE_FMT_NONE | ||
| 88 | }; | ||
| 89 | int ret; | ||
| 90 | |||
| 91 | ret = ff_set_common_all_channel_counts(ctx); | ||
| 92 | if (ret < 0) | ||
| 93 | return ret; | ||
| 94 | |||
| 95 | ret = ff_set_common_formats_from_list(ctx, sample_fmts); | ||
| 96 | if (ret < 0) | ||
| 97 | return ret; | ||
| 98 | |||
| 99 | return ff_set_common_all_samplerates(ctx); | ||
| 100 | } | ||
| 101 | |||
| 102 | static void generate_hann_window(float *window, float *inv_window, int size) | 83 | static void generate_hann_window(float *window, float *inv_window, int size) |
| 103 | { | 84 | { |
| 104 | for (int i = 0; i < size; i++) { | 85 | for (int i = 0; i < size; i++) { |
| @@ -671,7 +652,7 @@ const AVFilter ff_af_apsyclip = { · 566 unmodified lines | |||
| 671 | .uninit = uninit, | 652 | .uninit = uninit, |
| 672 | FILTER_INPUTS(inputs), | 653 | FILTER_INPUTS(inputs), |
| 673 | FILTER_OUTPUTS(outputs), | 654 | FILTER_OUTPUTS(outputs), |
| 674 | FILTER_QUERY_FUNC(query_formats), | 655 | FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), |
| 675 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | | 656 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 676 | AVFILTER_FLAG_SLICE_THREADS, | 657 | AVFILTER_FLAG_SLICE_THREADS, |
| 677 | .activate = activate, | 658 | .activate = activate, |