mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 22:01:10 +00:00
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:
parent
153473152d
commit
d4b05b8312
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user