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
This commit is contained in:
reimar 2005-08-30 23:59:21 +00:00
parent 0446e090b1
commit b03226df69
1 changed files with 4 additions and 1 deletions

View File

@ -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);