[Mplayer-cvslog] CVS: main ac3-iec958.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Wed Jan 30 23:03:10 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv12141

Modified Files:
	ac3-iec958.c 
Log Message:
silly cleanup - maybe fixes dummy printf bug

Index: ac3-iec958.c
===================================================================
RCS file: /cvsroot/mplayer/main/ac3-iec958.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ac3-iec958.c	28 Dec 2001 12:03:52 -0000	1.2
+++ ac3-iec958.c	30 Jan 2002 22:02:57 -0000	1.3
@@ -85,13 +85,12 @@
 
 int ac3_iec958_build_burst(int length, int data_type, int big_endian, unsigned char * data, unsigned char * out)
 {
-	const char sync[6] = { 0x72, 0xF8, 0x1F, 0x4E, 0x00, 0x00 };
-
-	memcpy(out, sync, 6);
-	if (length)
-		out[4] = data_type; /* & 0x1F; */
-	else
-		out[4] = 0;
+	out[0] = 0x72;
+	out[1] = 0xF8;
+	out[2] = 0x1F;
+	out[3] = 0x4E;
+	out[4] = (length) ? data_type : 0; /* & 0x1F; */
+	out[5] = 0x00;
 	out[6] = (length << 3) & 0xFF;
 	out[7] = (length >> 5) & 0xFF;
 	if (big_endian)




More information about the MPlayer-cvslog mailing list