Unified · Split
| @@ -151,23 +151,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 150 unmodified lines | ||
| 151 | 151 | return ff_filter_frame(outlink, out); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | −static int query_formats(AVFilterContext *ctx) | |
| 155 | −{ | |
| 156 | − static const enum AVSampleFormat sample_fmts[] = { | |
| 157 | − AV_SAMPLE_FMT_DBLP, | |
| 158 | − AV_SAMPLE_FMT_NONE | |
| 159 | − }; | |
| 160 | − int ret = ff_set_common_all_channel_counts(ctx); | |
| 161 | − if (ret < 0) | |
| 162 | − return ret; | |
| 163 | − | |
| 164 | − ret = ff_set_common_formats_from_list(ctx, sample_fmts); | |
| 165 | − if (ret < 0) | |
| 166 | − return ret; | |
| 167 | − | |
| 168 | − return ff_set_common_all_samplerates(ctx); | |
| 169 | −} | |
| 170 | − | |
| 171 | 154 | static inline void set_highshelf_rbj(BiquadCoeffs *bq, double freq, double q, double peak, double sr) |
| 172 | 155 | { |
| 173 | 156 | double A = sqrt(peak); |
| @@ -393,7 +376,7 @@ const AVFilter ff_af_aemphasis = { · 219 unmodified lines | ||
| 393 | 376 | .uninit = uninit, |
| 394 | 377 | FILTER_INPUTS(avfilter_af_aemphasis_inputs), |
| 395 | 378 | FILTER_OUTPUTS(avfilter_af_aemphasis_outputs), |
| 396 | − FILTER_QUERY_FUNC(query_formats), | |
| 379 | + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP), | |
| 397 | 380 | .process_command = process_command, |
| 398 | 381 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | |
| 399 | 382 | AVFILTER_FLAG_SLICE_THREADS, |