# HG changeset patch # User reimar # Date 1301155878 0 # Node ID 31ced51f7e47978a4f88ab81826d599002a09db8 # Parent f3037de78b3676932423d905329a00a25b2e5815 Do not do A-V sync correction if one of the pts values is bogus (NOPTS_VALUE) since that will actually cause desync. diff -r f3037de78b36 -r 31ced51f7e47 mplayer.c --- a/mplayer.c Sat Mar 26 16:02:44 2011 +0000 +++ b/mplayer.c Sat Mar 26 16:11:18 2011 +0000 @@ -2042,6 +2042,9 @@ 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);