Browse Source

avfilter/vf_stack: Fix memleak of out frame

Fixes CID1322347

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

+ 3
- 1
libavfilter/vf_stack.c View File

@@ -116,8 +116,10 @@ static int process_frame(FFFrameSync *fs)
int linesize[4];
int height[4];

if ((ret = av_image_fill_linesizes(linesize, inlink->format, inlink->w)) < 0)
if ((ret = av_image_fill_linesizes(linesize, inlink->format, inlink->w)) < 0) {
av_frame_free(&out);
return ret;
}

height[1] = height[2] = FF_CEIL_RSHIFT(inlink->h, s->desc->log2_chroma_h);
height[0] = height[3] = inlink->h;


Loading…
Cancel
Save