Fixes non-monotonous timestamps.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -279,7 +279,6 @@ static int config_output(AVFilterLink *outlink) · 278 unmodified lines | ||
| 279 | 279 | |
| 280 | 280 | outlink->w = base->w; |
| 281 | 281 | outlink->h = base->h; |
| 282 | − outlink->time_base = base->time_base; | |
| 283 | 282 | outlink->sample_aspect_ratio = base->sample_aspect_ratio; |
| 284 | 283 | outlink->frame_rate = base->frame_rate; |
| 285 | 284 | |
| @@ -302,7 +301,10 @@ static int config_output(AVFilterLink *outlink) · 16 unmodified lines | ||
| 302 | 301 | s->fs.opaque = s; |
| 303 | 302 | s->fs.on_event = process_frame; |
| 304 | 303 | |
| 305 | − return ff_framesync_configure(&s->fs); | |
| 304 | + ret = ff_framesync_configure(&s->fs); | |
| 305 | + outlink->time_base = s->fs.time_base; | |
| 306 | + | |
| 307 | + return ret; | |
| 306 | 308 | } |
| 307 | 309 | |
| 308 | 310 | static int activate(AVFilterContext *ctx) |