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
1347 av_audio_fifo_free(s->fifo);1347 av_audio_fifo_free(s->fifo);
1348}1348}
1349 1349
1350static 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
1367static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,1350static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
1368 char *res, int res_len, int flags)1351 char *res, int res_len, int flags)
1369{1352{
@@ -1418,7 +1401,7 @@ const AVFilter ff_af_afftdn = { · 48 unmodified lines
1418 .uninit = uninit,1401 .uninit = uninit,
1419 FILTER_INPUTS(inputs),1402 FILTER_INPUTS(inputs),
1420 FILTER_OUTPUTS(outputs),1403 FILTER_OUTPUTS(outputs),
1421 FILTER_QUERY_FUNC(query_formats),1404 FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP),
1422 .process_command = process_command,1405 .process_command = process_command,
1423 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |1406 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
1424 AVFILTER_FLAG_SLICE_THREADS,1407 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