aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-09-24 09:30:05 +0200
committerNicolas George <george@nsup.org>2015-12-22 15:55:00 +0100
commitd03eab34dd8a0da63591b1fbc56149595d3907f7 (patch)
treef60838fc0f84308c30a59262b7f2af6b893b5b43 /libavfilter/avfilter.c
parent63f7bee75221a205c97e0c3948bc24906653e1b7 (diff)
downloadffmpeg-d03eab34dd8a0da63591b1fbc56149595d3907f7.tar.gz
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.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 5d7bc09b86..fc6d49d909 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -238,7 +238,7 @@ int avfilter_config_links(AVFilterContext *filter)
}
inlink = link->src->nb_inputs ? link->src->inputs[0] : NULL;
- link->current_pts = AV_NOPTS_VALUE;
+ link->current_pts_us = AV_NOPTS_VALUE;
switch (link->init_state) {
case AVLINK_INIT:
@@ -443,7 +443,7 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts)
{
if (pts == AV_NOPTS_VALUE)
return;
- link->current_pts = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
+ link->current_pts_us = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
/* TODO use duration */
if (link->graph && link->age_index >= 0)
ff_avfilter_graph_update_heap(link->graph, link);