fix a/v sync issues when using ad_hwmpa

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19292 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2006-08-01 18:44:31 +00:00
parent 153473152d
commit d4b05b8312
1 changed files with 3 additions and 0 deletions

View File

@ -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);