Browse Source

lavfi: rescale link->current_pts.

The doxy says, and the heap implementations assumes,
it is in AV_TIME_BASE units.
tags/n1.0
Nicolas George 13 years ago
parent
commit
d06bfda07e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/avfilter.c

+ 2
- 1
libavfilter/avfilter.c View File

@@ -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);
}


Loading…
Cancel
Save