diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-07-17 17:43:39 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-07-17 23:46:26 +0200 |
commit | d06bfda07eab95318e6586ea37110ee99f02c97a (patch) | |
tree | 117e6d16ccfc6dc5a465f54ad9d241c4947fa191 /libavfilter/avfilter.c | |
parent | 0b74b8f649db87859d5b7ef5c4e5f6dbc0c0615a (diff) | |
download | ffmpeg-d06bfda07eab95318e6586ea37110ee99f02c97a.tar.gz |
lavfi: rescale link->current_pts.
The doxy says, and the heap implementations assumes,
it is in AV_TIME_BASE units.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 5094105e44..c698d8aa57 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts) { if (pts == AV_NOPTS_VALUE) return; - link->current_pts = pts; /* TODO use duration */ + link->current_pts = 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); } |