diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 5094105e44c1ed83efdd6259c9edefd2b99d7b5b..c698d8aa57833b54cab30770e77cd3a0d97dc2e4 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) { if (pts == AV_NOPTS_VALUE) return; - link->current_pts = pts; /* TODO use duration */ + link->current_pts = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q); + /* TODO use duration */ if (link->graph && link->age_index >= 0) ff_avfilter_graph_update_heap(link->graph, link); }