OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c331be2
)
avfilter/vf_ciescope: Free out AVFrame on error
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 3 Feb 2017 18:37:18 +0000
(19:37 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 3 Feb 2017 20:52:22 +0000
(21:52 +0100)
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_ciescope.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_ciescope.c
b/libavfilter/vf_ciescope.c
index
450c17b
..
7c0cfed
100644
(file)
--- a/
libavfilter/vf_ciescope.c
+++ b/
libavfilter/vf_ciescope.c
@@
-1369,8
+1369,10
@@
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (!s->background) {
ret = draw_background(ctx);
- if (ret < 0)
+ if (ret < 0) {
+ av_frame_free(&out);
return ret;
+ }
s->background = 1;
}
for (y = 0; y < outlink->h; y++) {