aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-07-14 19:14:10 +0200
committerPaul B Mahol <onemda@gmail.com>2019-07-14 19:14:10 +0200
commit97698b15a2b5cfc4632ee89d8c53137a41b3752c (patch)
tree170e56f6f6c9f5ecae69291a8cfbfbcc5d44b220
parent166977a200a1b51149d7296f47dc61d24c392f67 (diff)
downloadffmpeg-97698b15a2b5cfc4632ee89d8c53137a41b3752c.tar.gz
avfilter/vf_hysteresis: use time_base from framesync
Fixes non-monotonous timestamps.
-rw-r--r--libavfilter/vf_hysteresis.c6
1 files 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)