diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-19 18:08:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-19 18:08:58 +0100 |
commit | 6a71efff33e74d2c0ca73684ffb5dc3f58841f51 (patch) | |
tree | 9bff1bc6a2f762b45e4675d9b3c9c54d70d98541 /libavfilter | |
parent | 0a382aa99bd2d23473e23fda9b78a7bf7f924d79 (diff) | |
download | ffmpeg-6a71efff33e74d2c0ca73684ffb5dc3f58841f51.tar.gz |
avfilter/vf_tinterlace: check clone return value
Inspired by: 3a16ec19d2426457419cb8a7304f97982699efda
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-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 9c1b84845a..db82393117 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -263,6 +263,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref) case MODE_DROP_ODD: /* only output even frames, odd frames are dropped; height unchanged, half framerate */ case MODE_DROP_EVEN: /* only output odd frames, even frames are dropped; height unchanged, half framerate */ out = av_frame_clone(tinterlace->mode == MODE_DROP_EVEN ? cur : next); + if (!out) + return AVERROR(ENOMEM); av_frame_free(&tinterlace->next); break; |