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

Anssi Saari as at sci.fi
Sat Sep 14 10:17:01 CEST 2002


On Fri, Sep 13, 2002 at 11:39:43PM +0200, Alex Beregszaszi wrote:
 
> could you try now to fix that fbsd hwac3 bug? thx

This simple patch I made works for me in freebsd and linux both. 

--- libmpcodecs/ad_hwac3.c.orig	Fri Sep 13 23:45:11 2002
+++ libmpcodecs/ad_hwac3.c	Fri Sep 13 23:55:33 2002
@@ -96,6 +96,9 @@
 	buf[5] = 0x00;
 	buf[6] = (len << 3) & 0xFF;
 	buf[7] = (len >> 5) & 0xFF;
+#ifdef __FreeBSD__
+	if(len > -1)
+#endif
 	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);



More information about the MPlayer-dev-eng mailing list