Commit abc957e8 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_amix: dont fail if there are no samples in output_frame()

Fixes Ticket5326
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b092ee70
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment