Commit 0a382aa9 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3a16ec19'

* commit '3a16ec19':
  vf_interlace: check one av_frame_clone allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8983dea4 3a16ec19
......@@ -184,6 +184,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_log(ctx, AV_LOG_WARNING,
"video is already interlaced, adjusting framerate only\n");
out = av_frame_clone(s->cur);
if (!out)
return AVERROR(ENOMEM);
out->pts /= 2; // adjust pts to new framerate
ret = ff_filter_frame(outlink, out);
return ret;
......
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