History

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

Andreas Rheinhardt committed 5 years ago

Commit d3bb91d1 parent ba90e301 file · +1 −18Browse files

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

Unified · Split

libavfilter/af_afftdn.c+1−18
@@ -1347,23 +1347,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 1346 unmodified lines
13471347 av_audio_fifo_free(s->fifo);
13481348 }
13491349
1350−static int query_formats(AVFilterContext *ctx)
1351−{
1352− static const enum AVSampleFormat sample_fmts[] = {
1353− AV_SAMPLE_FMT_FLTP,
1354− AV_SAMPLE_FMT_NONE
1355− };
1356− int ret = ff_set_common_formats_from_list(ctx, sample_fmts);
1357− if (ret < 0)
1358− return ret;
1359−
1360− ret = ff_set_common_all_channel_counts(ctx);
1361− if (ret < 0)
1362− return ret;
1363−
1364− return ff_set_common_all_samplerates(ctx);
1365−}
1366−
13671350 static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
13681351 char *res, int res_len, int flags)
13691352 {
@@ -1418,7 +1401,7 @@ const AVFilter ff_af_afftdn = { · 48 unmodified lines
14181401 .uninit = uninit,
14191402 FILTER_INPUTS(inputs),
14201403 FILTER_OUTPUTS(outputs),
1421− FILTER_QUERY_FUNC(query_formats),
1404+ FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP),
14221405 .process_command = process_command,
14231406 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
14241407 AVFILTER_FLAG_SLICE_THREADS,

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