[MPlayer-dev-eng] Re: [PATCH] hwac3 on FreeBSD

Arpi arpi at thot.banki.hu
Sun Sep 15 17:51:46 CEST 2002


Hi,

> --- libmpcodecs/ad_hwac3.c.orig	Sun Sep 15 12:29:51 2002
> +++ libmpcodecs/ad_hwac3.c	Sun Sep 15 12:48:35 2002
> @@ -96,7 +96,8 @@
>  	buf[5] = 0x00;
>  	buf[6] = (len << 3) & 0xFF;
>  	buf[7] = (len >> 5) & 0xFF;
> -	swab(sh_audio->a_in_buffer, buf + 8, len);
> +	if(len>0)
> +		swab(sh_audio->a_in_buffer, buf + 8, len);
>  	//memcpy(buf + 8, sh_audio->a_in_buffer, len);
>  	memset(buf + 8 + len, 0, 6144 - 8 - len);

hmm
looking at the code in ad_hwac3, i've found that your patch isn't the right
fix, but a workaround... anyway i've fixed now the real problem
(missing len=sh_audio->a_in_buffer_len), try now
it should also fix minor a-v sync issues caused by dropped ac3 frames


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list