aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-07-03 14:49:16 +0200
committerPaul B Mahol <onemda@gmail.com>2019-07-03 14:54:05 +0200
commitcc5c6367807736c1b3faa126e25afe0f946f19e9 (patch)
tree67bd3a6aa2010cf66955c9ee5e5105e43c93d9dc /libavfilter
parentd49d7d238f15021350c54e9c681e250464057cc3 (diff)
downloadffmpeg-cc5c6367807736c1b3faa126e25afe0f946f19e9.tar.gz
avfilter/vf_midequalizer: use time_base from framesync
Fixes non-monotonous timestamps.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_midequalizer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_midequalizer.c b/libavfilter/vf_midequalizer.c
index 87d1e7cb31..6266cd7d5e 100644
--- a/libavfilter/vf_midequalizer.c
+++ b/libavfilter/vf_midequalizer.c
@@ -307,7 +307,6 @@ static int config_output(AVFilterLink *outlink)
outlink->w = in0->w;
outlink->h = in0->h;
- outlink->time_base = in0->time_base;
outlink->sample_aspect_ratio = in0->sample_aspect_ratio;
outlink->frame_rate = in0->frame_rate;
@@ -326,7 +325,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)