[Mplayer-cvslog] CVS: main/libmpdemux asfheader.c,1.29,1.30
Arpi of Ize
arpi at mplayer.dev.hu
Sat Apr 13 18:49:29 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv20185
Modified Files:
asfheader.c
Log Message:
bigendlian fix by Guillaume Morin <guillaume at morinfr.org>
Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- asfheader.c 5 Feb 2002 16:50:10 -0000 1.29
+++ asfheader.c 13 Apr 2002 16:49:27 -0000 1.30
@@ -301,9 +301,12 @@
for( i=0 ; i<stream_count && ptr<((char*)object+objh.size) ; i++ ) {
stream_id = *(uint16_t*)ptr;
ptr += sizeof(uint16_t);
- printf(" stream id=[0x%x][%u]\n", stream_id, stream_id );
max_bitrate = *(uint32_t*)ptr;
ptr += sizeof(uint32_t);
+#ifdef WORDS_BIGENDIAN
+ stream_id=bswap_16(stream_id); max_bitrate=bswap_32(max_bitrate);
+#endif
+ printf(" stream id=[0x%x][%u]\n", stream_id, stream_id );
printf(" max bitrate=[0x%x][%u]\n", max_bitrate, max_bitrate );
streams[2*i] = stream_id;
streams[2*i+1] = max_bitrate;
More information about the MPlayer-cvslog
mailing list