Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -93,23 +93,6 @@ static const AVOption anlmdn_options[] = { · 92 unmodified lines | |||
| 93 | 93 | ||
| 94 | AVFILTER_DEFINE_CLASS(anlmdn); | 94 | AVFILTER_DEFINE_CLASS(anlmdn); |
| 95 | 95 | ||
| 96 | static int query_formats(AVFilterContext *ctx) | ||
| 97 | { | ||
| 98 | static const enum AVSampleFormat sample_fmts[] = { | ||
| 99 | AV_SAMPLE_FMT_FLTP, | ||
| 100 | AV_SAMPLE_FMT_NONE | ||
| 101 | }; | ||
| 102 | int ret = ff_set_common_formats_from_list(ctx, sample_fmts); | ||
| 103 | if (ret < 0) | ||
| 104 | return ret; | ||
| 105 | |||
| 106 | ret = ff_set_common_all_channel_counts(ctx); | ||
| 107 | if (ret < 0) | ||
| 108 | return ret; | ||
| 109 | |||
| 110 | return ff_set_common_all_samplerates(ctx); | ||
| 111 | } | ||
| 112 | |||
| 113 | static float compute_distance_ssd_c(const float *f1, const float *f2, ptrdiff_t K) | 96 | static float compute_distance_ssd_c(const float *f1, const float *f2, ptrdiff_t K) |
| 114 | { | 97 | { |
| 115 | float distance = 0.; | 98 | float distance = 0.; |
| @@ -407,7 +390,7 @@ const AVFilter ff_af_anlmdn = { · 291 unmodified lines | |||
| 407 | .uninit = uninit, | 390 | .uninit = uninit, |
| 408 | FILTER_INPUTS(inputs), | 391 | FILTER_INPUTS(inputs), |
| 409 | FILTER_OUTPUTS(outputs), | 392 | FILTER_OUTPUTS(outputs), |
| 410 | FILTER_QUERY_FUNC(query_formats), | 393 | FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), |
| 411 | .process_command = process_command, | 394 | .process_command = process_command, |
| 412 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | | 395 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 413 | AVFILTER_FLAG_SLICE_THREADS, | 396 | AVFILTER_FLAG_SLICE_THREADS, |