changeset 19286:ac6746d40459

fix a/v sync issues when using ad_hwmpa
author ben
date Tue, 01 Aug 2006 18:44:31 +0000
parents 87e3e034e324
children b2f48e71bb53
files libmpcodecs/ad_hwmpa.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwmpa.c	Tue Aug 01 15:54:23 2006 +0000
+++ b/libmpcodecs/ad_hwmpa.c	Tue Aug 01 18:44:31 2006 +0000
@@ -110,6 +110,9 @@
 		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);