lavfi: rename link.current_pts to current_pts_us.

This field is used for fast comparison between link ages,
it is in AV_TIME_BASE units, in other words microseconds,
µs =~ us.
Renaming it allows a second field in link time base units.
This commit is contained in:
Nicolas George
2015-09-24 09:30:05 +02:00
parent 63f7bee752
commit d03eab34dd
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1324,7 +1324,7 @@ static void heap_bubble_up(AVFilterGraph *graph,
while (index) {
int parent = (index - 1) >> 1;
if (links[parent]->current_pts >= link->current_pts)
if (links[parent]->current_pts_us >= link->current_pts_us)
break;
links[index] = links[parent];
links[index]->age_index = index;
@@ -1346,9 +1346,9 @@ static void heap_bubble_down(AVFilterGraph *graph,
if (child >= graph->sink_links_count)
break;
if (child + 1 < graph->sink_links_count &&
links[child + 1]->current_pts < links[child]->current_pts)
links[child + 1]->current_pts_us < links[child]->current_pts_us)
child++;
if (link->current_pts < links[child]->current_pts)
if (link->current_pts_us < links[child]->current_pts_us)
break;
links[index] = links[child];
links[index]->age_index = index;