This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avfilter/vf_signalstats: fix avframe leak on error
Fixes CID1257014 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer
10 years ago
parent
8280b7db47
commit
7ad742b224
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavfilter/vf_signalstats.c
+ 3
- 1
libavfilter/vf_signalstats.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save