mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 13:50:58 +00:00
avfilter/af_amix: do not request samples if inlink reached EOF
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
257f0d09f7
commit
99b6e68441
@ -370,7 +370,8 @@ static int request_samples(AVFilterContext *ctx, int min_samples)
|
||||
av_assert0(s->nb_inputs > 1);
|
||||
|
||||
for (i = 1; i < s->nb_inputs; i++) {
|
||||
if (!(s->input_state[i] & INPUT_ON))
|
||||
if (!(s->input_state[i] & INPUT_ON) ||
|
||||
(s->input_state[i] & INPUT_EOF))
|
||||
continue;
|
||||
if (av_audio_fifo_size(s->fifos[i]) >= min_samples)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user