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:
8280b7d
)
avfilter/vf_signalstats: fix avframe leak on error
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 6 Dec 2014 15:57:23 +0000
(16:57 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 6 Dec 2014 16:05:20 +0000
(17:05 +0100)
Fixes CID1257014
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_signalstats.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_signalstats.c
b/libavfilter/vf_signalstats.c
index
4b2792f
..
8632761
100644
(file)
--- a/
libavfilter/vf_signalstats.c
+++ b/
libavfilter/vf_signalstats.c
@@
-132,8
+132,10
@@
static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h)
frame->width = w;
frame->height = h;
- if (av_frame_get_buffer(frame, 32) < 0)
+ if (av_frame_get_buffer(frame, 32) < 0) {
+ av_frame_free(&frame);
return NULL;
+ }
return frame;
}