Skip to content
Snippets Groups Projects
Commit c4f3b55f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '06e7301a'


* commit '06e7301a':
  vf_interlace: do not process an already interlaced frame

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents f5b27b6d 06e7301a
No related branches found
No related tags found
No related merge requests found
...@@ -180,6 +180,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -180,6 +180,15 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (!s->cur || !s->next) if (!s->cur || !s->next)
return 0; return 0;
if (s->cur->interlaced_frame) {
av_log(ctx, AV_LOG_WARNING,
"video is already interlaced, adjusting framerate only\n");
out = av_frame_clone(s->cur);
out->pts /= 2; // adjust pts to new framerate
ret = ff_filter_frame(outlink, out);
return ret;
}
tff = (s->scan == MODE_TFF); tff = (s->scan == MODE_TFF);
out = ff_get_video_buffer(outlink, outlink->w, outlink->h); out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) if (!out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment