Commit 9217dedc authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_anlmdn: add timeline support

parent 1ea5529d
...@@ -204,7 +204,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs) ...@@ -204,7 +204,7 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
s->dsp.compute_cache(cache + S, f, S, K, i, i + 1); s->dsp.compute_cache(cache + S, f, S, K, i, i + 1);
} }
for (int j = 0; j < 2 * S; j++) { for (int j = 0; j < 2 * S && !ctx->is_disabled; j++) {
const float distance = cache[j]; const float distance = cache[j];
unsigned weight_lut_idx; unsigned weight_lut_idx;
float w; float w;
...@@ -344,5 +344,6 @@ AVFilter ff_af_anlmdn = { ...@@ -344,5 +344,6 @@ AVFilter ff_af_anlmdn = {
.uninit = uninit, .uninit = uninit,
.inputs = inputs, .inputs = inputs,
.outputs = outputs, .outputs = outputs,
.flags = AVFILTER_FLAG_SLICE_THREADS, .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_SLICE_THREADS,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment