mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-09 16:50:01 +00:00
avfilter/af_afade: start crossfading only when first stream reached end
This commit is contained in:
parent
7c872df3e1
commit
86a42e954e
@ -485,7 +485,7 @@ static int activate(AVFilterContext *ctx)
|
|||||||
(AVRational){ 1, outlink->sample_rate }, outlink->time_base);
|
(AVRational){ 1, outlink->sample_rate }, outlink->time_base);
|
||||||
return ff_filter_frame(outlink, in);
|
return ff_filter_frame(outlink, in);
|
||||||
} else if (ff_inlink_queued_samples(ctx->inputs[0]) >= s->nb_samples &&
|
} 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) {
|
if (s->overlap) {
|
||||||
out = ff_get_audio_buffer(outlink, s->nb_samples);
|
out = ff_get_audio_buffer(outlink, s->nb_samples);
|
||||||
if (!out)
|
if (!out)
|
||||||
|
Loading…
Reference in New Issue
Block a user