vf_frei0r: also set AVFilterLink.frame_rate
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Nov 2015 17:57:26 +0000 (09:57 -0800)
committerAnton Khirnov <anton@khirnov.net>
Mon, 9 Nov 2015 07:09:42 +0000 (08:09 +0100)
(cherry picked from ffmpeg commit 353cf95f948ef7c6139c8ead79e9eeb9eb8d2e6e)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vf_frei0r.c

index 0122b8d..04f74bc 100644 (file)
@@ -459,6 +459,7 @@ static int source_config_props(AVFilterLink *outlink)
     outlink->w = s->w;
     outlink->h = s->h;
     outlink->time_base = s->time_base;
+    outlink->frame_rate = av_inv_q(s->time_base);
 
     if (s->destruct && s->instance)
         s->destruct(s->instance);