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.
Showing the changes to libavfilter/avfiltergraph.c (1 of 3 files). Show all
Unified · Split
| @@ -1324,7 +1324,7 @@ static void heap_bubble_up(AVFilterGraph *graph, · 1323 unmodified lines | ||
| 1324 | 1324 | |
| 1325 | 1325 | while (index) { |
| 1326 | 1326 | 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) | |
| 1328 | 1328 | break; |
| 1329 | 1329 | links[index] = links[parent]; |
| 1330 | 1330 | links[index]->age_index = index; |
| @@ -1346,9 +1346,9 @@ static void heap_bubble_down(AVFilterGraph *graph, · 15 unmodified lines | ||
| 1346 | 1346 | if (child >= graph->sink_links_count) |
| 1347 | 1347 | break; |
| 1348 | 1348 | 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) | |
| 1350 | 1350 | child++; |
| 1351 | − if (link->current_pts < links[child]->current_pts) | |
| 1351 | + if (link->current_pts_us < links[child]->current_pts_us) | |
| 1352 | 1352 | break; |
| 1353 | 1353 | links[index] = links[child]; |
| 1354 | 1354 | links[index]->age_index = index; |