diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-01 18:44:31 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-01 18:44:31 +0000 |
commit | d4b05b83124ca4a5d8733d7edc5643a6c53a6649 (patch) | |
tree | 2fae175d3aa685c72ef745655f21714a1f6a0b4e /libmpcodecs | |
parent | 153473152d72740233934db66dfde277805bd543 (diff) | |
download | mpv-d4b05b83124ca4a5d8733d7edc5643a6c53a6649.tar.bz2 mpv-d4b05b83124ca4a5d8733d7edc5643a6c53a6649.tar.xz |
fix a/v sync issues when using ad_hwmpa
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19292 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ad_hwmpa.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |