Mercurial > mplayer.hg
diff mplayer.c @ 33031:31ced51f7e47
Do not do A-V sync correction if one of the pts values is bogus
(NOPTS_VALUE) since that will actually cause desync.
author | reimar |
---|---|
date | Sat, 26 Mar 2011 16:11:18 +0000 |
parents | f3037de78b36 |
children | 3a1f250bb285 |
line wrap: on
line diff
--- 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);