Mercurial > mplayer.hg
comparison libmpdemux/demuxer.c @ 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 | a07354861027 |
children | 49ef03cb382a |
comparison
equal
deleted
inserted
replaced
16476:2a309d6c4d34 | 16477:c2e0e8c6f00a |
---|---|
707 | 707 |
708 if (demuxer->desc->open) | 708 if (demuxer->desc->open) |
709 if (!(demuxer = demuxer->desc->open(demuxer))) | 709 if (!(demuxer = demuxer->desc->open(demuxer))) |
710 return NULL; | 710 return NULL; |
711 | 711 |
712 if ((sh_video=demuxer->video->sh) && sh_video->bih) | 712 if ((sh_video=demuxer->video->sh) && sh_video->bih){ |
713 int biComp=le2me_32(sh_video->bih->biCompression); | |
713 mp_msg(MSGT_DEMUX,MSGL_INFO,"VIDEO: [%.4s] %ldx%ld %dbpp %5.3f fps %5.1f kbps (%4.1f kbyte/s)\n", | 714 mp_msg(MSGT_DEMUX,MSGL_INFO,"VIDEO: [%.4s] %ldx%ld %dbpp %5.3f fps %5.1f kbps (%4.1f kbyte/s)\n", |
714 (char *)&sh_video->bih->biCompression, | 715 (char *)&biComp, |
715 sh_video->bih->biWidth, | 716 sh_video->bih->biWidth, |
716 sh_video->bih->biHeight, | 717 sh_video->bih->biHeight, |
717 sh_video->bih->biBitCount, | 718 sh_video->bih->biBitCount, |
718 sh_video->fps, | 719 sh_video->fps, |
719 sh_video->i_bps*0.008f, | 720 sh_video->i_bps*0.008f, |
720 sh_video->i_bps/1024.0f ); | 721 sh_video->i_bps/1024.0f ); |
722 } | |
721 return demuxer; | 723 return demuxer; |
722 } | 724 } |
723 | 725 |
724 char* audio_stream = NULL; | 726 char* audio_stream = NULL; |
725 char* sub_stream = NULL; | 727 char* sub_stream = NULL; |