[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.60,1.61

Moritz Bunkus CVS syncmail at mplayerhq.hu
Fri Nov 5 22:40:36 CET 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv12409

Modified Files:
	demux_ogg.c 
Log Message:
Fix member alignment for usage on 64bit processors.

Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- demux_ogg.c	30 Oct 2004 08:42:25 -0000	1.60
+++ demux_ogg.c	5 Nov 2004 21:40:34 -0000	1.61
@@ -70,7 +70,7 @@
 	ogg_int32_t	avgbytespersec;
 } stream_header_audio;
 
-typedef struct stream_header
+typedef struct __attribute__((__packed__)) stream_header
 {
 	char	streamtype[8];
 	char	subtype[4];
@@ -84,6 +84,8 @@
 	ogg_int32_t buffersize;
 	ogg_int16_t	bits_per_sample;
 
+	ogg_int16_t padding;
+
 	union
 	{
 		// Video specific




More information about the MPlayer-cvslog mailing list