Browse Source

avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure

Fixes CID1322338

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 9 years ago
parent
commit
d5710411c7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/vf_atadenoise.c

+ 3
- 0
libavfilter/vf_atadenoise.c View File

@@ -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);


Loading…
Cancel
Save