1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/af_anlmdn: add timeline support

This commit is contained in:
Paul B Mahol 2019-01-13 11:55:01 +01:00
parent 1ea5529dd2
commit 9217dedcd9

View File

@ -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);
}
for (int j = 0; j < 2 * S; j++) {
for (int j = 0; j < 2 * S && !ctx->is_disabled; j++) {
const float distance = cache[j];
unsigned weight_lut_idx;
float w;
@ -344,5 +344,6 @@ AVFilter ff_af_anlmdn = {
.uninit = uninit,
.inputs = inputs,
.outputs = outputs,
.flags = AVFILTER_FLAG_SLICE_THREADS,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_SLICE_THREADS,
};