Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -100,23 +100,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 99 unmodified lines | ||
| 100 | 100 | av_frame_free(&s->delay_frame); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | −static int query_formats(AVFilterContext *ctx) | |
| 104 | −{ | |
| 105 | − static const enum AVSampleFormat sample_fmts[] = { | |
| 106 | − AV_SAMPLE_FMT_DBLP, | |
| 107 | − AV_SAMPLE_FMT_NONE | |
| 108 | − }; | |
| 109 | − int ret = ff_set_common_all_channel_counts(ctx); | |
| 110 | − if (ret < 0) | |
| 111 | − return ret; | |
| 112 | − | |
| 113 | − ret = ff_set_common_formats_from_list(ctx, sample_fmts); | |
| 114 | − if (ret < 0) | |
| 115 | − return ret; | |
| 116 | − | |
| 117 | − return ff_set_common_all_samplerates(ctx); | |
| 118 | −} | |
| 119 | − | |
| 120 | 103 | static void count_items(char *item_str, int *nb_items) |
| 121 | 104 | { |
| 122 | 105 | char *p; |
| @@ -580,5 +563,5 @@ const AVFilter ff_af_compand = { · 457 unmodified lines | ||
| 580 | 563 | .uninit = uninit, |
| 581 | 564 | FILTER_INPUTS(compand_inputs), |
| 582 | 565 | FILTER_OUTPUTS(compand_outputs), |
| 583 | − FILTER_QUERY_FUNC(query_formats), | |
| 566 | + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP), | |
| 584 | 567 | }; |