Commit 6a71efff authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_tinterlace: check clone return value

Inspired by: 3a16ec19Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0a382aa9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment