Mercurial > mplayer.hg
changeset 16322:9cb2b9b6a9b7
Sparcs do not like wild pointer typecasting (unaligned access).
Fixes bugzilla bug #365.
author | reimar |
---|---|
date | Tue, 30 Aug 2005 23:59:21 +0000 |
parents | efbfac98cab1 |
children | 60c6693b2b2b |
files | libmpdemux/demux_realaud.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);