[FFmpeg-cvslog] ffmpeg: use ist->dts in rate_emu_sleep()

Michael Niedermayer git at videolan.org
Wed Feb 8 17:41:24 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 17:25:40 2012 +0100| [160008a60f464bfade4495698beedb18c8f11d42] | committer: Michael Niedermayer

ffmpeg: use ist->dts in rate_emu_sleep()

Based on change by Anton Khirnov.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index a80b632..63749e6 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1937,7 +1937,7 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
 static void rate_emu_sleep(InputStream *ist)
 {
     if (input_files[ist->file_index].rate_emu) {
-        int64_t pts = av_rescale(ist->pts, 1000000, AV_TIME_BASE);
+        int64_t pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE);
         int64_t now = av_gettime() - ist->start;
         if (pts > now)
             usleep(pts - now);



More information about the ffmpeg-cvslog mailing list