History

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.

Nicolas George committed 11 years ago

Commit d03eab31 parent 63f7bee3 files · +6 −6Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+3−3
@@ -1324,7 +1324,7 @@ static void heap_bubble_up(AVFilterGraph *graph, · 1323 unmodified lines
13241324
13251325 while (index) {
13261326 int parent = (index - 1) >> 1;
1327− if (links[parent]->current_pts >= link->current_pts)
1327+ if (links[parent]->current_pts_us >= link->current_pts_us)
13281328 break;
13291329 links[index] = links[parent];
13301330 links[index]->age_index = index;
@@ -1346,9 +1346,9 @@ static void heap_bubble_down(AVFilterGraph *graph, · 15 unmodified lines
13461346 if (child >= graph->sink_links_count)
13471347 break;
13481348 if (child + 1 < graph->sink_links_count &&
1349− links[child + 1]->current_pts < links[child]->current_pts)
1349+ links[child + 1]->current_pts_us < links[child]->current_pts_us)
13501350 child++;
1351− if (link->current_pts < links[child]->current_pts)
1351+ if (link->current_pts_us < links[child]->current_pts_us)
13521352 break;
13531353 links[index] = links[child];
13541354 links[index]->age_index = index;

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