History

lavfi: move AVFilterLink.current_pts(_us) to FilterLink

Anton Khirnov committed 2 years ago

Commit d6318a21 parent 7f17e0e5 files · +25 −24Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+3−3
@@ -1326,7 +1326,7 @@ static void heap_bubble_up(FFFilterGraph *graph, · 1325 unmodified lines
1326 1326
1327 while (index) {1327 while (index) {
1328 int parent = (index - 1) >> 1;1328 int parent = (index - 1) >> 1;
1329 if (links[parent]->l.pub.current_pts_us >= li->l.pub.current_pts_us)1329 if (links[parent]->l.current_pts_us >= li->l.current_pts_us)
1330 break;1330 break;
1331 links[index] = links[parent];1331 links[index] = links[parent];
1332 links[index]->age_index = index;1332 links[index]->age_index = index;
@@ -1348,9 +1348,9 @@ static void heap_bubble_down(FFFilterGraph *graph, · 15 unmodified lines
1348 if (child >= graph->sink_links_count)1348 if (child >= graph->sink_links_count)
1349 break;1349 break;
1350 if (child + 1 < graph->sink_links_count &&1350 if (child + 1 < graph->sink_links_count &&
1351 links[child + 1]->l.pub.current_pts_us < links[child]->l.pub.current_pts_us)1351 links[child + 1]->l.current_pts_us < links[child]->l.current_pts_us)
1352 child++;1352 child++;
1353 if (li->l.pub.current_pts_us < links[child]->l.pub.current_pts_us)1353 if (li->l.current_pts_us < links[child]->l.current_pts_us)
1354 break;1354 break;
1355 links[index] = links[child];1355 links[index] = links[child];
1356 links[index]->age_index = index;1356 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