[MPlayer-cvslog] r33118 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Mar 26 17:11:18 CET 2011


Author: reimar
Date: Sat Mar 26 17:11:18 2011
New Revision: 33118

Log:
Do not do A-V sync correction if one of the pts values is bogus
(NOPTS_VALUE) since that will actually cause desync.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Mar 26 17:02:44 2011	(r33117)
+++ trunk/mplayer.c	Sat Mar 26 17:11:18 2011	(r33118)
@@ -2042,6 +2042,9 @@ static void adjust_sync_and_print_status
 	    static int drop_message=0;
 	    double AV_delay = a_pts - audio_delay - v_pts;
 	    double x;
+	    // not a good idea to do A-V correction with with bogus values
+	    if (a_pts == MP_NOPTS_VALUE || v_pts == MP_NOPTS_VALUE)
+		AV_delay = 0;
 	    if (AV_delay>0.5 && drop_frame_cnt>50 && drop_message==0){
 		++drop_message;
 		mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);


More information about the MPlayer-cvslog mailing list