[FFmpeg-devel] [PATCH 1/2] lavfi/vf_zoompan: set output time base and frame rate.

Nicolas George george at nsup.org
Mon Dec 1 16:43:16 CET 2014


Fix invalid output frame rate when settb is used before
zoompan to set it.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/vf_zoompan.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_zoompan.c b/libavfilter/vf_zoompan.c
index f55095f..1c97eb6 100644
--- a/libavfilter/vf_zoompan.c
+++ b/libavfilter/vf_zoompan.c
@@ -116,6 +116,9 @@ static int config_output(AVFilterLink *outlink)
 
     outlink->w = s->w;
     outlink->h = s->h;
+    /* TODO: make it an option */
+    outlink->time_base = ctx->inputs[0]->time_base;
+    outlink->frame_rate = av_inv_q(outlink->time_base);
 
     return 0;
 }
-- 
2.1.3



More information about the ffmpeg-devel mailing list