aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_vflip.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-15 11:16:53 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-22 09:14:05 +0200
commit1dc42050185d63c1de5d16146fbaee92640af187 (patch)
treee53dbbfc52894acf4efd526b9ddcaf1d0b87d94d /libavfilter/vf_vflip.c
parent80e4ed279b3abe9f5356e2b56255b2aa64527345 (diff)
downloadffmpeg-1dc42050185d63c1de5d16146fbaee92640af187.tar.gz
lavfi: check all avfilter_ref_buffer() calls for errors.
Diffstat (limited to 'libavfilter/vf_vflip.c')
-rw-r--r--libavfilter/vf_vflip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c
index dc7604c52a..b3143229b1 100644
--- a/libavfilter/vf_vflip.c
+++ b/libavfilter/vf_vflip.c
@@ -70,6 +70,9 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *inpicref)
AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0);
int i;
+ if (!outpicref)
+ return AVERROR(ENOMEM);
+
for (i = 0; i < 4; i ++) {
int vsub = i == 1 || i == 2 ? flip->vsub : 0;