[11/12] vsrc_color: set frame rate

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

Commit Message

John Stebbins Oct. 27, 2015, 8:17 p.m.
---
 libavfilter/vsrc_color.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Luca Barbato Oct. 27, 2015, 9:07 p.m. | #1
On 27/10/15 21:17, John Stebbins wrote:
> ---
>  libavfilter/vsrc_color.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c
> index 3b506ec..644fd8b 100644
> --- a/libavfilter/vsrc_color.c
> +++ b/libavfilter/vsrc_color.c
> @@ -138,6 +138,7 @@ static int color_config_props(AVFilterLink *inlink)
>      inlink->w = color->w;
>      inlink->h = color->h;
>      inlink->time_base = color->time_base;
> +    inlink->frame_rate = av_inv_q(color->time_base);

Probably Ok. that value is being inverted twice.

Patch

diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c
index 3b506ec..644fd8b 100644
--- a/libavfilter/vsrc_color.c
+++ b/libavfilter/vsrc_color.c
@@ -138,6 +138,7 @@  static int color_config_props(AVFilterLink *inlink)
     inlink->w = color->w;
     inlink->h = color->h;
     inlink->time_base = color->time_base;
+    inlink->frame_rate = av_inv_q(color->time_base);
 
     return 0;
 }