mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_maskedclamp: use time_base from framesync
Fixes non-monotonous timestamps.
This commit is contained in:
parent
8a0636a93b
commit
d71dafb2ab
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user