History

lavfi: rescale link->current_pts.

The doxy says, and the heap implementations assumes, it is in AV_TIME_BASE units.

Nicolas George committed 14 years ago

Commit d06bfda1 parent 0b74b8f1 file · +2 −1Browse files

Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+2−1
@@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) · 358 unmodified lines
359{359{
360 if (pts == AV_NOPTS_VALUE)360 if (pts == AV_NOPTS_VALUE)
361 return;361 return;
362 link->current_pts = pts; /* TODO use duration */362 link->current_pts = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
363 /* TODO use duration */
363 if (link->graph && link->age_index >= 0)364 if (link->graph && link->age_index >= 0)
364 ff_avfilter_graph_update_heap(link->graph, link);365 ff_avfilter_graph_update_heap(link->graph, link);
365}366}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t