History

avfilter/af_compand: Store format in filter, remove query function

Andreas Rheinhardt committed 5 years ago

Commit 4bcb75e1 parent 3eeb7881 file · +1 −18Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_compand.c+1−18
@@ -100,23 +100,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 99 unmodified lines
100 av_frame_free(&s->delay_frame);100 av_frame_free(&s->delay_frame);
101}101}
102 102
103static 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
120static void count_items(char *item_str, int *nb_items)103static void count_items(char *item_str, int *nb_items)
121{104{
122 char *p;105 char *p;
@@ -580,5 +563,5 @@ const AVFilter ff_af_compand = { · 457 unmodified lines
580 .uninit = uninit,563 .uninit = uninit,
581 FILTER_INPUTS(compand_inputs),564 FILTER_INPUTS(compand_inputs),
582 FILTER_OUTPUTS(compand_outputs),565 FILTER_OUTPUTS(compand_outputs),
583 FILTER_QUERY_FUNC(query_formats),566 FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP),
584};567};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t