diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-03 18:05:41 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-03 18:24:35 +0100 |
commit | decc008929e3bf2b6260a150ed806107efa39a9b (patch) | |
tree | 4fb72e3b91094be1bdb4c3682925902cebd42460 /libavfilter | |
parent | 639694eaa554d2e174d87222f81740e37c2288ac (diff) | |
download | ffmpeg-decc008929e3bf2b6260a150ed806107efa39a9b.tar.gz |
avfilter/af_amultiply: make use of ff_inlink_queued_samples()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_amultiply.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libavfilter/af_amultiply.c b/libavfilter/af_amultiply.c index a742f6a9c6..b35eca7250 100644 --- a/libavfilter/af_amultiply.c +++ b/libavfilter/af_amultiply.c @@ -24,9 +24,6 @@ #include "libavutil/float_dsp.h" #include "libavutil/opt.h" -#define FF_INTERNAL_FIELDS 1 -#include "framequeue.h" - #include "audio.h" #include "avfilter.h" #include "formats.h" @@ -85,8 +82,8 @@ static int activate(AVFilterContext *ctx) FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx); - nb_samples = FFMIN(ff_framequeue_queued_samples(&ctx->inputs[0]->fifo), - ff_framequeue_queued_samples(&ctx->inputs[1]->fifo)); + nb_samples = FFMIN(ff_inlink_queued_samples(ctx->inputs[0]), + ff_inlink_queued_samples(ctx->inputs[1])); for (i = 0; i < ctx->nb_inputs && nb_samples > 0; i++) { if (s->frames[i]) continue; @@ -150,7 +147,7 @@ static int activate(AVFilterContext *ctx) if (ff_outlink_frame_wanted(ctx->outputs[0])) { for (i = 0; i < 2; i++) { - if (ff_framequeue_queued_samples(&ctx->inputs[i]->fifo) > 0) + if (ff_inlink_queued_samples(ctx->inputs[i]) > 0) continue; ff_inlink_request_frame(ctx->inputs[i]); return 0; |