[Mplayer-cvslog] CVS: main mplayer.c,1.651,1.652

Arpi of Ize arpi at mplayerhq.hu
Thu Jan 16 23:34:48 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv27859

Modified Files:
	mplayer.c 
Log Message:
fixed the well-known DVD/DVB audio delay bug :)


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.651
retrieving revision 1.652
diff -u -r1.651 -r1.652
--- mplayer.c	13 Jan 2003 02:41:52 -0000	1.651
+++ mplayer.c	16 Jan 2003 22:34:23 -0000	1.652
@@ -2052,7 +2052,7 @@
 #endif	  
       a_pts+=(ds_tell_pts(d_audio)-sh_audio->a_in_buffer_len)/(float)sh_audio->i_bps;
     }
-    v_pts=d_video->pts;
+    v_pts=sh_video ? sh_video->pts : d_video->pts;
 
       mp_dbg(MSGT_AVSYNC,MSGL_DBG2,"### A:%8.3f (%8.3f)  V:%8.3f  A-V:%7.4f  \n",a_pts,a_pts-audio_delay-delay,v_pts,(a_pts-delay-audio_delay)-v_pts);
 



More information about the MPlayer-cvslog mailing list