diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-31 10:22:05 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-31 10:23:59 +0100 |
commit | 86a42e954e8e75175a65ef93d05fece8e001e36b (patch) | |
tree | 42c66f0c3435a5f1373e89ac2e2aa7ae81a0308c | |
parent | 7c872df3e175d1c9de4aeb294abcd7c6ab4bb0f3 (diff) | |
download | ffmpeg-86a42e954e8e75175a65ef93d05fece8e001e36b.tar.gz |
avfilter/af_afade: start crossfading only when first stream reached end
-rw-r--r-- | libavfilter/af_afade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c index 23608fb59b..4edfd27a3c 100644 --- a/libavfilter/af_afade.c +++ b/libavfilter/af_afade.c @@ -485,7 +485,7 @@ static int activate(AVFilterContext *ctx) (AVRational){ 1, outlink->sample_rate }, outlink->time_base); return ff_filter_frame(outlink, in); } else if (ff_inlink_queued_samples(ctx->inputs[0]) >= s->nb_samples && - ff_inlink_queued_samples(ctx->inputs[1]) >= s->nb_samples) { + ff_inlink_queued_samples(ctx->inputs[1]) >= s->nb_samples && s->cf0_eof) { if (s->overlap) { out = ff_get_audio_buffer(outlink, s->nb_samples); if (!out) |