[Mplayer-cvslog] CVS: main mplayer.c,1.640,1.641

Arpi of Ize arpi at mplayerhq.hu
Tue Dec 31 03:26:35 CET 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv11682

Modified Files:
	mplayer.c 
Log Message:
I've made some changes to the -identify handling. As previously the output
for ID_VIDEO_FORMAT was only meaningful if it was a fourcc file, the
output for mpeg1 and mpeg2 was jibberish.
based on patch by Philip Jägenstedt <philipj at telia.com>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.640
retrieving revision 1.641
diff -u -r1.640 -r1.641
--- mplayer.c	29 Dec 2002 21:06:20 -0000	1.640
+++ mplayer.c	31 Dec 2002 02:26:32 -0000	1.641
@@ -1377,9 +1377,9 @@
   if (sh_video) {
     /* Assume FOURCC if all bytes >= 0x20 (' ') */
     if (sh_video->format >= 0x20202020)
-      mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=%.4s\n", &sh_video->format);
+	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=%.4s\n", &sh_video->format);
     else
-      mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=%d\n", sh_video->format);
+	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_FORMAT=0x%08X\n", sh_video->format);
     mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_BITRATE=%d\n", sh_video->i_bps*8);
     mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_WIDTH=%d\n", sh_video->disp_w);
     mp_msg(MSGT_GLOBAL,MSGL_INFO,"ID_VIDEO_HEIGHT=%d\n", sh_video->disp_h);




More information about the MPlayer-cvslog mailing list