diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-30 07:08:19 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-30 16:17:10 +0400 |
commit | 31619584556466e4beab98e9b04ed4c5ba0db178 (patch) | |
tree | a283652cc29749acbd880aa1eeccbc979b434a8c /libavfilter/vf_yadif.c | |
parent | cbb2c95e47cd83cb65b2ce77cbb0296e85fa506b (diff) |
yadif: update frame rate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r-- | libavfilter/vf_yadif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index afbd900af4..215c764c7b 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -405,11 +405,16 @@ static int null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) static int config_props(AVFilterLink *link) { + YADIFContext *yadif = link->src->priv; + link->time_base.num = link->src->inputs[0]->time_base.num; link->time_base.den = link->src->inputs[0]->time_base.den * 2; link->w = link->src->inputs[0]->w; link->h = link->src->inputs[0]->h; + if(yadif->mode&1) + link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate, (AVRational){2,1}); + return 0; } |