Unified · Split
| @@ -89,23 +89,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 88 unmodified lines | ||
| 89 | 89 | rubberband_delete(s->rbs); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | −static int query_formats(AVFilterContext *ctx) | |
| 93 | −{ | |
| 94 | − static const enum AVSampleFormat sample_fmts[] = { | |
| 95 | − AV_SAMPLE_FMT_FLTP, | |
| 96 | − AV_SAMPLE_FMT_NONE, | |
| 97 | − }; | |
| 98 | − int ret = ff_set_common_all_channel_counts(ctx); | |
| 99 | − if (ret < 0) | |
| 100 | − return ret; | |
| 101 | − | |
| 102 | − ret = ff_set_common_formats_from_list(ctx, sample_fmts); | |
| 103 | − if (ret < 0) | |
| 104 | − return ret; | |
| 105 | − | |
| 106 | − return ff_set_common_all_samplerates(ctx); | |
| 107 | −} | |
| 108 | − | |
| 109 | 92 | static int filter_frame(AVFilterLink *inlink, AVFrame *in) |
| 110 | 93 | { |
| 111 | 94 | AVFilterContext *ctx = inlink->dst; |
| @@ -228,6 +211,6 @@ const AVFilter ff_af_rubberband = { · 116 unmodified lines | ||
| 228 | 211 | .activate = activate, |
| 229 | 212 | FILTER_INPUTS(rubberband_inputs), |
| 230 | 213 | FILTER_OUTPUTS(rubberband_outputs), |
| 231 | − FILTER_QUERY_FUNC(query_formats), | |
| 214 | + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), | |
| 232 | 215 | .process_command = process_command, |
| 233 | 216 | }; |