changeset 13881:e69a40dc1a19

Fix member alignment for usage on 64bit processors.
author mosu
date Fri, 05 Nov 2004 21:40:34 +0000
parents 232ae8a31009
children 8a928d5b42b8
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Fri Nov 05 18:51:37 2004 +0000
+++ b/libmpdemux/demux_ogg.c	Fri Nov 05 21:40:34 2004 +0000
@@ -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