projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eca193
)
avfilter/vf_stack: Fix memleak of out frame
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 5 Sep 2015 12:41:45 +0000
(14:41 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 5 Sep 2015 12:41:45 +0000
(14:41 +0200)
Fixes CID1322347
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_stack.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_stack.c
b/libavfilter/vf_stack.c
index
6342e3f
..
8a90caa
100644
(file)
--- a/
libavfilter/vf_stack.c
+++ b/
libavfilter/vf_stack.c
@@
-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;