[FFmpeg-cvslog] lavfi: use correct PTS for link age.

Nicolas George git at videolan.org
Mon Jul 30 18:17:43 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Jul 30 16:47:41 2012 +0200| [a85b4a5696787e36df8d7c805de8f86ea6365acb] | committer: Nicolas George

lavfi: use correct PTS for link age.

When start_frame has returned, the buffer reference's PTS
may have been modified by another filter.

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

 libavfilter/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/video.c b/libavfilter/video.c
index 566b0ec..95791cd 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -275,7 +275,7 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
     }
     pts = link->cur_buf->pts;
     ret = start_frame(link, link->cur_buf);
-    ff_update_link_current_pts(link,link->cur_buf ?  link->cur_buf->pts : pts);
+    ff_update_link_current_pts(link, pts);
     if (ret < 0)
         clear_link(link);
 



More information about the ffmpeg-cvslog mailing list