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/avfilter.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.c+2−2
@@ -238,7 +238,7 @@ int avfilter_config_links(AVFilterContext *filter) · 237 unmodified lines
238238 }
239239
240240 inlink = link->src->nb_inputs ? link->src->inputs[0] : NULL;
241− link->current_pts = AV_NOPTS_VALUE;
241+ link->current_pts_us = AV_NOPTS_VALUE;
242242
243243 switch (link->init_state) {
244244 case AVLINK_INIT:
@@ -443,7 +443,7 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) · 198 unmodified lines
443443 {
444444 if (pts == AV_NOPTS_VALUE)
445445 return;
446− link->current_pts = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
446+ link->current_pts_us = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
447447 /* TODO use duration */
448448 if (link->graph && link->age_index >= 0)
449449 ff_avfilter_graph_update_heap(link->graph, link);

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