On the sun all int32 objects have to be aligned on 32 bit boundaries. With

this patch the asf-files run well on sparc/solaris
patch by Martin Olschewski <olschewski@zpr.uni-koeln.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6188 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-05-25 12:56:56 +00:00
parent e8e9d30803
commit 1ae254811b
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ while(!stream_eof(demuxer->stream)){
for( i=0 ; i<stream_count && ptr<((char*)object+objh.size) ; i++ ) {
stream_id = le2me_16(*(uint16_t*)ptr);
ptr += sizeof(uint16_t);
max_bitrate = le2me_32(*(uint32_t*)ptr);
memcpy(&max_bitrate, ptr, sizeof(uint32_t));// workaround unaligment bug on sparc
max_bitrate = le2me_32(max_bitrate);
ptr += sizeof(uint32_t);
printf(" stream id=[0x%x][%u]\n", stream_id, stream_id );
printf(" max bitrate=[0x%x][%u]\n", max_bitrate, max_bitrate );