[libav-commits] vf_fps: set frame_rate.

Nicolas George git at libav.org
Mon Nov 9 08:19:24 CET 2015


Module: libav
Branch: master
Commit: 1062880d69a4fdc8d8929dd5c22bb447182f1c41

Author:    Nicolas George <nicolas.george at normalesup.org>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Tue Nov  3 09:57:20 2015 -0800

vf_fps: set frame_rate.

(cherry picked from ffmpeg commit 0d249316043fb69a3972029bff3a2969689ba8b6)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

---

 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;
 }



More information about the libav-commits mailing list