[FFmpeg-cvslog] lavfi: rescale link->current_pts.

Nicolas George git at videolan.org
Tue Jul 17 23:58:30 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jul 17 17:43:39 2012 +0200| [d06bfda07eab95318e6586ea37110ee99f02c97a] | committer: Nicolas George

lavfi: rescale link->current_pts.

The doxy says, and the heap implementations assumes,
it is in AV_TIME_BASE units.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d06bfda07eab95318e6586ea37110ee99f02c97a
---

 libavfilter/avfilter.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 5094105..c698d8a 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);
 }



More information about the ffmpeg-cvslog mailing list