diff libmpdemux/demuxer.c @ 8056:324b6e5387be

A-V sync cleanup: sh_audio->timer replaced by sh_audio->delay, it contains delay relative to sh_video->timer (or to 0 if audioonly). It fixes ct: drifts of very long (several hours) playback.
author arpi
date Sat, 02 Nov 2002 19:52:59 +0000
parents 2b39ff3860b7
children 9fc45fe0d444
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sat Nov 02 18:57:14 2002 +0000
+++ b/libmpdemux/demuxer.c	Sat Nov 02 19:52:59 2002 +0000
@@ -1135,7 +1135,7 @@
 #if 0
     if(sh_audio) sh_audio->timer=sh_video->timer;
 #else
-    if(sh_audio) sh_audio->timer=0;
+    if(sh_audio) sh_audio->delay=0;
     if(sh_video) sh_video->timer=0; // !!!!!!
 #endif