diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-13 18:13:58 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-13 18:13:58 +0000 |
commit | 7b14f06edb9d1a51231cf8c509742806ff714466 (patch) | |
tree | 959db071c0afa380b406167ee9205bf9c1e6e9bf /libmpdemux | |
parent | 82e1a7303f491bf8f6d0cbbd6c1cb487b723b7d1 (diff) | |
download | mpv-7b14f06edb9d1a51231cf8c509742806ff714466.tar.bz2 mpv-7b14f06edb9d1a51231cf8c509742806ff714466.tar.xz |
Make the fourcc output endianness-independent.
patch by Luca Barbato < lu_zero -- at -- gentoo -- at -- org >
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16478 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demuxer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 3508277f4a..3ecc551136 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -709,15 +709,17 @@ if (demuxer->desc->open) 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; } |