[07/12] vf_interlace: fix frame rate

Message ID 1445978420-17559-3-git-send-email-stebbins@jetheaddev.com
State New
Headers show

Commit Message

John Stebbins Oct. 27, 2015, 8:40 p.m.
From: Michael Niedermayer <michaelni@gmx.at>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 227b4458fb434875b127a0c2306fa3b899a770bf)
---
 libavfilter/vf_interlace.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Luca Barbato Oct. 27, 2015, 9:15 p.m. | #1
On 27/10/15 21:40, John Stebbins wrote:
> From: Michael Niedermayer <michaelni@gmx.at>
> 
> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
> (cherry picked from commit 227b4458fb434875b127a0c2306fa3b899a770bf)
> ---
>  libavfilter/vf_interlace.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
> index 8ef58e4..939fabc 100644
> --- a/libavfilter/vf_interlace.c
> +++ b/libavfilter/vf_interlace.c
> @@ -109,8 +109,10 @@ static int config_out_props(AVFilterLink *outlink)
>      outlink->w = inlink->w;
>      outlink->h = inlink->h;
>      outlink->time_base = inlink->time_base;
> +    outlink->frame_rate = inlink->frame_rate;
>      // half framerate
>      outlink->time_base.num *= 2;
> +    outlink->frame_rate.den *= 2;
>  
>  
>      if (s->lowpass) {
> 

Probably Ok.
Vittorio Giovara Oct. 28, 2015, 1:54 a.m. | #2
On Tue, Oct 27, 2015 at 10:15 PM, Luca Barbato <lu_zero@gentoo.org> wrote:
> On 27/10/15 21:40, John Stebbins wrote:
>> From: Michael Niedermayer <michaelni@gmx.at>
>>
>> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
>> (cherry picked from commit 227b4458fb434875b127a0c2306fa3b899a770bf)
>> ---
>>  libavfilter/vf_interlace.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>

ok, please amend the title from 'fix' to 'implement'

Patch

diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index 8ef58e4..939fabc 100644
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -109,8 +109,10 @@  static int config_out_props(AVFilterLink *outlink)
     outlink->w = inlink->w;
     outlink->h = inlink->h;
     outlink->time_base = inlink->time_base;
+    outlink->frame_rate = inlink->frame_rate;
     // half framerate
     outlink->time_base.num *= 2;
+    outlink->frame_rate.den *= 2;
 
 
     if (s->lowpass) {