aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-30 23:59:21 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-30 23:59:21 +0000
commitb03226df692aac696763828610ffb6836b50e548 (patch)
tree8f96ef18b4d16127584eecb42d3d20442576570e /libmpdemux
parent0446e090b1185e9773c77adad46bd5159acc8222 (diff)
Sparcs do not like wild pointer typecasting (unaligned access).
Fixes bugzilla bug #365. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16323 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_realaud.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/demux_realaud.c b/libmpdemux/demux_realaud.c
index 6c384c977a..5ec68bdb00 100644
--- a/libmpdemux/demux_realaud.c
+++ b/libmpdemux/demux_realaud.c
@@ -145,7 +145,10 @@ static demuxer_t* demux_open_ra(demuxer_t* demuxer)
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);