mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_amix: dont fail if there are no samples in output_frame()
Fixes Ticket5326
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit abc957e896
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5af0ada442
commit
76fd8145a1
@ -276,6 +276,9 @@ static int output_frame(AVFilterLink *outlink, int nb_samples)
|
||||
|
||||
calculate_scales(s, nb_samples);
|
||||
|
||||
if (nb_samples == 0)
|
||||
return 0;
|
||||
|
||||
out_buf = ff_get_audio_buffer(outlink, nb_samples);
|
||||
if (!out_buf)
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user