[libav-devel] [PATCH 04/12] vf_fps: set frame_rate.

John Stebbins stebbins at jetheaddev.com
Tue Nov 3 18:57:20 CET 2015


From: Nicolas George <nicolas.george at normalesup.org>

(cherry picked from ffmpeg commit 0d249316043fb69a3972029bff3a2969689ba8b6)
---
 libavfilter/vf_fps.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index ea22d37..e5562c8 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -116,9 +116,10 @@ static int config_props(AVFilterLink* link)
 {
     FPSContext   *s = link->src->priv;
 
-    link->time_base = (AVRational){ s->framerate.den, s->framerate.num };
-    link->w         = link->src->inputs[0]->w;
-    link->h         = link->src->inputs[0]->h;
+    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;
 
     return 0;
 }
-- 
2.4.3



More information about the libav-devel mailing list