# HG changeset patch # User reimar # Date 1125446361 0 # Node ID 9cb2b9b6a9b7b16763d0fee96e2275ee64c2bec5 # Parent efbfac98cab15555ceb8365ec72093df0194188e Sparcs do not like wild pointer typecasting (unaligned access). Fixes bugzilla bug #365. diff -r efbfac98cab1 -r 9cb2b9b6a9b7 libmpdemux/demux_realaud.c --- a/libmpdemux/demux_realaud.c Tue Aug 30 23:56:24 2005 +0000 +++ b/libmpdemux/demux_realaud.c Tue Aug 30 23:59:21 2005 +0000 @@ -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);