mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
avfilter/af_amix: dont fail if there are no samples in output_frame()
Fixes Ticket5326 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b092ee701f
commit
abc957e896
@ -312,6 +312,9 @@ static int output_frame(AVFilterLink *outlink)
|
||||
|
||||
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