[MPlayer-cvslog] CVS: main/libmpdemux demuxer.c,1.204,1.205

Diego Biurrun CVS syncmail at mplayerhq.hu
Tue Sep 13 20:14:00 CEST 2005


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv13832/libmpdemux

Modified Files:
	demuxer.c 
Log Message:
Make the fourcc output endianness-independent.
patch by Luca Barbato < lu_zero -- at -- gentoo -- at -- org >


Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -r1.204 -r1.205
--- demuxer.c	6 Sep 2005 19:50:21 -0000	1.204
+++ demuxer.c	13 Sep 2005 18:13:58 -0000	1.205
@@ -709,15 +709,17 @@
   if (!(demuxer = demuxer->desc->open(demuxer)))
     return NULL;
 
-if ((sh_video=demuxer->video->sh) && sh_video->bih)
+if ((sh_video=demuxer->video->sh) && sh_video->bih){
+int biComp=le2me_32(sh_video->bih->biCompression);
   mp_msg(MSGT_DEMUX,MSGL_INFO,"VIDEO:  [%.4s]  %ldx%ld  %dbpp  %5.3f fps  %5.1f kbps (%4.1f kbyte/s)\n",
-    (char *)&sh_video->bih->biCompression,
+    (char *)&biComp,
     sh_video->bih->biWidth,
     sh_video->bih->biHeight,
     sh_video->bih->biBitCount,
     sh_video->fps,
     sh_video->i_bps*0.008f,
     sh_video->i_bps/1024.0f );
+}
 return demuxer;
 }
 




More information about the MPlayer-cvslog mailing list