Commit d06bfda0 authored by Nicolas George's avatar Nicolas George

lavfi: rescale link->current_pts.

The doxy says, and the heap implementations assumes,
it is in AV_TIME_BASE units.
parent 0b74b8f6
...@@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) ...@@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts)
{ {
if (pts == AV_NOPTS_VALUE) if (pts == AV_NOPTS_VALUE)
return; 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) if (link->graph && link->age_index >= 0)
ff_avfilter_graph_update_heap(link->graph, link); ff_avfilter_graph_update_heap(link->graph, link);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment