[FFmpeg-cvslog] avfilter/vf_hysteresis: use time_base from framesync
Paul B Mahol
git at videolan.org
Sun Jul 14 20:15:49 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 14 19:14:10 2019 +0200| [97698b15a2b5cfc4632ee89d8c53137a41b3752c] | committer: Paul B Mahol
avfilter/vf_hysteresis: use time_base from framesync
Fixes non-monotonous timestamps.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97698b15a2b5cfc4632ee89d8c53137a41b3752c
---
libavfilter/vf_hysteresis.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_hysteresis.c b/libavfilter/vf_hysteresis.c
index ecb917fda7..48e9179f42 100644
--- a/libavfilter/vf_hysteresis.c
+++ b/libavfilter/vf_hysteresis.c
@@ -311,7 +311,6 @@ static int config_output(AVFilterLink *outlink)
outlink->w = base->w;
outlink->h = base->h;
- outlink->time_base = base->time_base;
outlink->sample_aspect_ratio = base->sample_aspect_ratio;
outlink->frame_rate = base->frame_rate;
@@ -330,7 +329,10 @@ static int config_output(AVFilterLink *outlink)
s->fs.opaque = s;
s->fs.on_event = process_frame;
- 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