diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-07-14 17:28:04 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-07-14 17:28:04 +0200 |
commit | 3d78ad43f781833207dd4a27ca4df0b61dbe7bb4 (patch) | |
tree | 7c4fb391a849e90f8377f5b1d5f31f9aebebb4c7 /libavfilter/vf_threshold.c | |
parent | 37e69b40dfd1bdb862c9432ba619f54bd8883ad8 (diff) | |
download | ffmpeg-3d78ad43f781833207dd4a27ca4df0b61dbe7bb4.tar.gz |
avfilter/vf_threshold: use time_base from framesync
Fixes non-monotonous timestamps.
Diffstat (limited to 'libavfilter/vf_threshold.c')
-rw-r--r-- | libavfilter/vf_threshold.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_threshold.c b/libavfilter/vf_threshold.c index cf2535d452..ee29c88ef5 100644 --- a/libavfilter/vf_threshold.c +++ b/libavfilter/vf_threshold.c @@ -277,7 +277,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; @@ -304,7 +303,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) |