Commit b198e091 authored by Derek Buitenhuis's avatar Derek Buitenhuis

af_amix: Add missing error check

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent c27d7c02
......@@ -468,6 +468,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
ret = av_audio_fifo_write(s->fifos[i], (void **)buf->extended_data,
buf->nb_samples);
if (ret < 0)
goto fail;
av_frame_free(&buf);
return output_frame(outlink, 0);
......
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