avfilter: pass correct argument to helper function
authorPaul B Mahol <onemda@gmail.com>
Fri, 27 Oct 2017 16:18:18 +0000 (18:18 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 31 Oct 2017 19:37:22 +0000 (20:37 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/avfilter.c

index bc9e60b..b98b32b 100644 (file)
@@ -1532,7 +1532,7 @@ int ff_inlink_consume_samples(AVFilterLink *link, unsigned min, unsigned max,
         return 0;
     if (link->status_in)
         min = FFMIN(min, ff_framequeue_queued_samples(&link->fifo));
-    ret = take_samples(link, min, link->max_samples, &frame);
+    ret = take_samples(link, min, max, &frame);
     if (ret < 0)
         return ret;
     consume_update(link, frame);