Commit d5710411 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure

Fixes CID1322338
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c97ea011
......@@ -302,6 +302,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (s->q.available != s->size) {
if (s->q.available < s->mid) {
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out)
return AVERROR(ENOMEM);
for (i = 0; i < s->mid; i++)
ff_bufqueue_add(ctx, &s->q, av_frame_clone(out));
av_frame_free(&out);
......
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