[FFmpeg-cvslog] avfilter/vf_lut2: use time_base from framesync

Paul B Mahol git at videolan.org
Wed Jul 3 15:55:41 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jul  3 14:52:44 2019 +0200| [1ac643f06654e97921069e5a5c322e0e168de7e8] | committer: Paul B Mahol

avfilter/vf_lut2: use time_base from framesync

Fixes non-monotonous timestamps.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ac643f06654e97921069e5a5c322e0e168de7e8
---

 libavfilter/vf_lut2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_lut2.c b/libavfilter/vf_lut2.c
index 2d4ede7158..721de7d210 100644
--- a/libavfilter/vf_lut2.c
+++ b/libavfilter/vf_lut2.c
@@ -507,7 +507,10 @@ static int lut2_config_output(AVFilterLink *outlink)
     if ((ret = config_output(outlink)) < 0)
         return ret;
 
-    return ff_framesync_configure(&s->fs);
+    ret = ff_framesync_configure(&s->fs);
+    outlink->time_base = s->fs.time_base;
+
+    return ret;
 }
 
 static int activate(AVFilterContext *ctx)



More information about the ffmpeg-cvslog mailing list