[FFmpeg-cvslog] avfilter/af_anlmdn: add timeline support

Paul B Mahol git at videolan.org
Sun Jan 13 13:08:57 EET 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jan 13 11:55:01 2019 +0100| [9217dedcd99109f5a22fe43bdde26d68542c3963] | committer: Paul B Mahol

avfilter/af_anlmdn: add timeline support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9217dedcd99109f5a22fe43bdde26d68542c3963
---

 libavfilter/af_anlmdn.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index 43ceab8e4a..c637f170d2 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list