[MPlayer-cvslog] CVS: main/libmpdemux demux_realaud.c,1.8,1.9

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Aug 31 01:59:24 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_realaud.c 
Log Message:
Sparcs do not like wild pointer typecasting (unaligned access).
Fixes bugzilla bug #365.


Index: demux_realaud.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_realaud.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demux_realaud.c	5 Aug 2005 19:57:46 -0000	1.8
+++ demux_realaud.c	30 Aug 2005 23:59:21 -0000	1.9
@@ -145,7 +145,10 @@
 		mp_msg(MSGT_DEMUX,MSGL_V,"[RealAudio] %d channel, %d bit, %dHz\n", sh->channels,
 			sh->samplesize, sh->samplerate);
 		i = stream_read_char(demuxer->stream);
-		*((unsigned int *)(ra_priv->genr)) = stream_read_dword(demuxer->stream);
+		ra_priv->genr[0] = stream_read_char(demuxer->stream);
+		ra_priv->genr[1] = stream_read_char(demuxer->stream);
+		ra_priv->genr[2] = stream_read_char(demuxer->stream);
+		ra_priv->genr[3] = stream_read_char(demuxer->stream);
 		if (i != 4) {
 			mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] Genr size is not 4 (%d), please report to "
 				"MPlayer developers\n", i);




More information about the MPlayer-cvslog mailing list