aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_maskedclamp.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-07-03 14:38:05 +0200
committerPaul B Mahol <onemda@gmail.com>2019-07-03 14:54:05 +0200
commitd71dafb2abba7b2b506acc00137afa667e1e0440 (patch)
tree142bdaf1fd85c3671bb274d2f78e1d317da61fe9 /libavfilter/vf_maskedclamp.c
parent8a0636a93b388c241b26996bcb71a6c953dadd9b (diff)
downloadffmpeg-d71dafb2abba7b2b506acc00137afa667e1e0440.tar.gz
avfilter/vf_maskedclamp: use time_base from framesync
Fixes non-monotonous timestamps.
Diffstat (limited to 'libavfilter/vf_maskedclamp.c')
-rw-r--r--libavfilter/vf_maskedclamp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_maskedclamp.c b/libavfilter/vf_maskedclamp.c
index 8a06737ed3..16444e9de3 100644
--- a/libavfilter/vf_maskedclamp.c
+++ b/libavfilter/vf_maskedclamp.c
@@ -279,7 +279,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;
@@ -302,7 +301,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)