[FFmpeg-cvslog] avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure
Michael Niedermayer
git at videolan.org
Thu Sep 3 23:56:10 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 3 23:07:43 2015 +0200| [d5710411c74357efce09d1b09770990d2c13ef0c] | committer: Michael Niedermayer
avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure
Fixes CID1322338
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5710411c74357efce09d1b09770990d2c13ef0c
---
libavfilter/vf_atadenoise.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/vf_atadenoise.c b/libavfilter/vf_atadenoise.c
index 5e60687..a3c623f 100755
--- 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);
More information about the ffmpeg-cvslog
mailing list