aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_mptestsrc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-08 18:48:16 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-08 19:24:09 +0000
commited8373e7db14e608641f4db4f2dc3047048013f3 (patch)
treee2e967e830c06bec013599a55f5aa4f14f3082a4 /libavfilter/vsrc_mptestsrc.c
parente82f562fa5ef7de4764ccd699c1fc8430454f17a (diff)
downloadffmpeg-ed8373e7db14e608641f4db4f2dc3047048013f3.tar.gz
lavfi: always check return value of ff_get_{audio,video}_buffer()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_mptestsrc.c')
-rw-r--r--libavfilter/vsrc_mptestsrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index 856c3e4dec..9f1c46f849 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -323,6 +323,8 @@ static int request_frame(AVFilterLink *outlink)
if (test->max_pts >= 0 && test->pts > test->max_pts)
return AVERROR_EOF;
picref = ff_get_video_buffer(outlink, w, h);
+ if (!picref)
+ return AVERROR(ENOMEM);
picref->pts = test->pts++;
// clean image