[03/12] vf_fps: set frame_rate.

Message ID 1445977054-15625-4-git-send-email-stebbins@jetheaddev.com
State New
Headers show

Commit Message

John Stebbins Oct. 27, 2015, 8:17 p.m.
From: Nicolas George <nicolas.george@normalesup.org>

(cherry picked from commit 0d249316043fb69a3972029bff3a2969689ba8b6)
---
 libavfilter/vf_fps.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Luca Barbato Oct. 27, 2015, 9:03 p.m. | #1
On 27/10/15 21:17, John Stebbins wrote:
> From: Nicolas George <nicolas.george@normalesup.org>
> 
> (cherry picked from commit 0d249316043fb69a3972029bff3a2969689ba8b6)
> ---
>  libavfilter/vf_fps.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
> index ea22d37..e20f5a0 100644
> --- a/libavfilter/vf_fps.c
> +++ b/libavfilter/vf_fps.c
> @@ -117,6 +117,7 @@ static int config_props(AVFilterLink* link)
>      FPSContext   *s = link->src->priv;
>  
>      link->time_base = (AVRational){ s->framerate.den, s->framerate.num };
> +    link->frame_rate= s->framerate;
>      link->w         = link->src->inputs[0]->w;
>      link->h         = link->src->inputs[0]->h;
>  
> 

Sure.

Patch

diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index ea22d37..e20f5a0 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -117,6 +117,7 @@  static int config_props(AVFilterLink* link)
     FPSContext   *s = link->src->priv;
 
     link->time_base = (AVRational){ s->framerate.den, s->framerate.num };
+    link->frame_rate= s->framerate;
     link->w         = link->src->inputs[0]->w;
     link->h         = link->src->inputs[0]->h;