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/avfilter.c (1 of 3 files). Show all
Unified · Split
| @@ -238,7 +238,7 @@ int avfilter_config_links(AVFilterContext *filter) · 237 unmodified lines | |||
| 238 | } | 238 | } |
| 239 | 239 | ||
| 240 | inlink = link->src->nb_inputs ? link->src->inputs[0] : NULL; | 240 | 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; |
| 242 | 242 | ||
| 243 | switch (link->init_state) { | 243 | switch (link->init_state) { |
| 244 | case AVLINK_INIT: | 244 | case AVLINK_INIT: |
| @@ -443,7 +443,7 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) · 198 unmodified lines | |||
| 443 | { | 443 | { |
| 444 | if (pts == AV_NOPTS_VALUE) | 444 | if (pts == AV_NOPTS_VALUE) |
| 445 | return; | 445 | 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); |
| 447 | /* TODO use duration */ | 447 | /* TODO use duration */ |
| 448 | if (link->graph && link->age_index >= 0) | 448 | if (link->graph && link->age_index >= 0) |
| 449 | ff_avfilter_graph_update_heap(link->graph, link); | 449 | ff_avfilter_graph_update_heap(link->graph, link); |