From d4b05b83124ca4a5d8733d7edc5643a6c53a6649 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 1 Aug 2006 18:44:31 +0000 Subject: fix a/v sync issues when using ad_hwmpa git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19292 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_hwmpa.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ad_hwmpa.c b/libmpcodecs/ad_hwmpa.c index c2a6bf7255..6f25bcef57 100644 --- a/libmpcodecs/ad_hwmpa.c +++ b/libmpcodecs/ad_hwmpa.c @@ -110,6 +110,9 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen) sh->a_in_buffer_len -= start + len; memmove(sh->a_in_buffer, &(sh->a_in_buffer[start + len]), sh->a_in_buffer_len); tot2 += spf * 2 * chans; + + /* HACK: seems to fix most A/V sync issues */ + break; } memset(&buf[tot], 0, tot2-tot); -- cgit v1.2.3