changeset 16477:c2e0e8c6f00a

Make the fourcc output endianness-independent. patch by Luca Barbato < lu_zero -- at -- gentoo -- at -- org >
author diego
date Tue, 13 Sep 2005 18:13:58 +0000
parents 2a309d6c4d34
children b44e6a5edeb2
files libmpdemux/demuxer.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Tue Sep 13 18:12:48 2005 +0000
+++ b/libmpdemux/demuxer.c	Tue Sep 13 18:13:58 2005 +0000
@@ -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;
 }