diff options
author | John Stebbins <[email protected]> | 2016-01-25 12:24:03 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-02-15 12:38:13 -0700 |
commit | 1e4f868915edd738e56f82a67ea1443b953b373a (patch) | |
tree | 50bf7224effca06cf540fd2f48580b331d620ab3 /libhb/avfilter.c | |
parent | 7e5bbec56e9ee7b47d54d6e8ebfe912467479608 (diff) |
deinterlace: add conditional deinterlacing of interlaced frames
Only deinterlace frames that are marked as interlaced when mode
HB_YADIF_AUTO is set in the filter settings.
Currently, this would cause no frames to be deinterlaced since all
frames are marked non-interlaced. This option will become useful in a
subsequent patch that splits comb detection into it's own filter.
Diffstat (limited to 'libhb/avfilter.c')
-rw-r--r-- | libhb/avfilter.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libhb/avfilter.c b/libhb/avfilter.c index 4c1f1d165..a865d6305 100644 --- a/libhb/avfilter.c +++ b/libhb/avfilter.c @@ -335,11 +335,12 @@ static void fill_frame(hb_filter_private_t * pv, frame->linesize[1] = buf->plane[1].stride; frame->linesize[2] = buf->plane[2].stride; - frame->pts = buf->s.start; + frame->pts = buf->s.start; frame->reordered_opaque = buf->s.start; - frame->width = buf->f.width; - frame->height = buf->f.height; - frame->format = buf->f.fmt; + frame->width = buf->f.width; + frame->height = buf->f.height; + frame->format = buf->f.fmt; + frame->interlaced_frame = !!buf->s.combed; } static hb_buffer_t* avframe_to_buffer(hb_filter_private_t * pv, AVFrame *frame) |