git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c97ea01
)
avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure
author
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 3 Sep 2015 21:07:43 +0000
(23:07 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 3 Sep 2015 21:07:43 +0000
(23:07 +0200)
Fixes CID1322338
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_atadenoise.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_atadenoise.c
b/libavfilter/vf_atadenoise.c
index
5e60687
..
a3c623f
100755
(executable)
--- a/
libavfilter/vf_atadenoise.c
+++ b/
libavfilter/vf_atadenoise.c
@@
-302,6
+302,9
@@
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (s->q.available != s->size) {
if (s->q.available < s->mid) {
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
+ if (!out)
+ return AVERROR(ENOMEM);
+
for (i = 0; i < s->mid; i++)
ff_bufqueue_add(ctx, &s->q, av_frame_clone(out));
av_frame_free(&out);