diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-08 18:48:16 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-08 19:24:09 +0000 |
commit | ed8373e7db14e608641f4db4f2dc3047048013f3 (patch) | |
tree | e2e967e830c06bec013599a55f5aa4f14f3082a4 /libavfilter/vf_tinterlace.c | |
parent | e82f562fa5ef7de4764ccd699c1fc8430454f17a (diff) | |
download | ffmpeg-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/vf_tinterlace.c')
-rw-r--r-- | libavfilter/vf_tinterlace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 5caca2f2c9..6ff2140bbe 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -266,6 +266,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref) case MODE_PAD: /* expand each frame to double height, but pad alternate * lines with black; framerate unchanged */ out = ff_get_video_buffer(outlink, outlink->w, outlink->h); + if (!out) + return AVERROR(ENOMEM); av_frame_copy_props(out, cur); out->height = outlink->h; |