diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-01 14:55:43 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-01 14:55:43 +0200 |
commit | 94b155e49bdefcfe3117759e55bb1d40e655eb9e (patch) | |
tree | 4d849c1e5e8dcbc4c65478998b3f3494f836417f /libavfilter/vf_copy.c | |
parent | 9cee8975c3fe49c22ce450863d195a462e2be06a (diff) | |
download | ffmpeg-94b155e49bdefcfe3117759e55bb1d40e655eb9e.tar.gz |
avfilter/copy: add forgotten check
Diffstat (limited to 'libavfilter/vf_copy.c')
-rw-r--r-- | libavfilter/vf_copy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c index a59e024e87..e82feb4f0e 100644 --- a/libavfilter/vf_copy.c +++ b/libavfilter/vf_copy.c @@ -50,8 +50,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) AVFrame *out = ff_get_video_buffer(outlink, in->width, in->height); int ret; - if (!out) + if (!out) { ret = AVERROR(ENOMEM); + goto fail; + } ret = av_frame_copy_props(out, in); if (ret < 0) |