diff options
author | Nicolas George <george@nsup.org> | 2015-09-24 10:05:42 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-12-22 15:55:00 +0100 |
commit | b8b7d5ac6c793b12db2c90627a136766852593cb (patch) | |
tree | 3107849ebc472f9078451cbeb4369e2d7230772c /libavfilter/avfilter.c | |
parent | d03eab34dd8a0da63591b1fbc56149595d3907f7 (diff) | |
download | ffmpeg-b8b7d5ac6c793b12db2c90627a136766852593cb.tar.gz |
lavfi: add link.current_pts field.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index fc6d49d909..2911b48fd8 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -238,6 +238,7 @@ int avfilter_config_links(AVFilterContext *filter) } inlink = link->src->nb_inputs ? link->src->inputs[0] : NULL; + link->current_pts = link->current_pts_us = AV_NOPTS_VALUE; switch (link->init_state) { @@ -443,6 +444,7 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) { if (pts == AV_NOPTS_VALUE) return; + link->current_pts = pts; 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) |