aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-08 17:25:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-08 17:25:40 +0100
commit160008a60f464bfade4495698beedb18c8f11d42 (patch)
tree977507787d77bb061ba04640680b056fd5019ece
parente7f4de34ad442ae91671e8288724b2e63a81072f (diff)
downloadffmpeg-160008a60f464bfade4495698beedb18c8f11d42.tar.gz
ffmpeg: use ist->dts in rate_emu_sleep()
Based on change by Anton Khirnov. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a80b632cc5..63749e6fac 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);