You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avfilter/vf_stack: Fix memleak of out frame
Fixes CID1322347 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -116,8 +116,10 @@ static int process_frame(FFFrameSync *fs)
|
|||||||
int linesize[4];
|
int linesize[4];
|
||||||
int height[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;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
height[1] = height[2] = FF_CEIL_RSHIFT(inlink->h, s->desc->log2_chroma_h);
|
height[1] = height[2] = FF_CEIL_RSHIFT(inlink->h, s->desc->log2_chroma_h);
|
||||||
height[0] = height[3] = inlink->h;
|
height[0] = height[3] = inlink->h;
|
||||||
|
Reference in New Issue
Block a user