Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -47,25 +47,6 @@ typedef struct ATiltContext { · 46 unmodified lines | ||
| 47 | 47 | int (*filter_channels)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); |
| 48 | 48 | } ATiltContext; |
| 49 | 49 | |
| 50 | −static int query_formats(AVFilterContext *ctx) | |
| 51 | −{ | |
| 52 | − static const enum AVSampleFormat sample_fmts[] = { | |
| 53 | − AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP, | |
| 54 | − AV_SAMPLE_FMT_NONE | |
| 55 | − }; | |
| 56 | − int ret; | |
| 57 | − | |
| 58 | − ret = ff_set_common_formats_from_list(ctx, sample_fmts); | |
| 59 | − if (ret < 0) | |
| 60 | − return ret; | |
| 61 | − | |
| 62 | − ret = ff_set_common_all_channel_counts(ctx); | |
| 63 | − if (ret < 0) | |
| 64 | − return ret; | |
| 65 | − | |
| 66 | − return ff_set_common_all_samplerates(ctx); | |
| 67 | −} | |
| 68 | − | |
| 69 | 50 | static double prewarp(double w, double T, double wp) |
| 70 | 51 | { |
| 71 | 52 | return wp * tan(w * T * 0.5) / tan(wp * T * 0.5); |
| @@ -280,7 +261,7 @@ AVFilter ff_af_atilt = { · 208 unmodified lines | ||
| 280 | 261 | .uninit = uninit, |
| 281 | 262 | FILTER_INPUTS(inputs), |
| 282 | 263 | FILTER_OUTPUTS(outputs), |
| 283 | − FILTER_QUERY_FUNC(query_formats), | |
| 264 | + FILTER_SAMPLEFMTS(AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP), | |
| 284 | 265 | .process_command = process_command, |
| 285 | 266 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | |
| 286 | 267 | AVFILTER_FLAG_SLICE_THREADS, |