[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.103,1.104

Diego Biurrun CVS diego at mplayerhq.hu
Tue Jan 20 05:59:50 CET 2004


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/scsi/2/tmp/cvs-serv30746/libmpdemux

Modified Files:
	demux_mov.c 
Log Message:
Have the MOV demuxer recognize and display (via MPINFO) registered ISO 
and other major brands instead of the usual "Unknown major brand" from 
only having "isom" defined.
patch by Shan <sweber at slingshot.co.nz>, approved by Alex


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- demux_mov.c	6 Nov 2003 08:19:25 -0000	1.103
+++ demux_mov.c	20 Jan 2004 04:59:48 -0000	1.104
@@ -327,19 +327,52 @@
 	  tmp = stream_read_dword(demuxer->stream);
 	  switch(tmp) {
 	    case MOV_FOURCC('i','s','o','m'):
-	      mp_msg(MSGT_DEMUX,MSGL_V,"MOV: File-Type Major-Brand: ISO Media File\n");
+	      mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Major Brand: ISO Base Media\n");
+     	      break;
+	    case MOV_FOURCC('m','p','4','1'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v1\n");
+     	      break;
+	    case MOV_FOURCC('m','p','4','2'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2\n");
+     	      break;
+	    case MOV_FOURCC('M','4','A',' '):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: Apple iTunes AAC-LC Audio\n");
+     	      break;
+	    case MOV_FOURCC('M','4','P',' '):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: Apple iTunes AAC-LC Protected Audio\n");
+     	      break;
+	    case MOV_FOURCC('q','t',' ',' '):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: Original QuickTime\n");
+     	      break;
+	    case MOV_FOURCC('3','g','p','1'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: 3GPP Profile 1\n");
+     	      break;
+	    case MOV_FOURCC('3','g','p','2'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: 3GPP Profile 2\n");
+     	      break;
+	    case MOV_FOURCC('3','g','p','3'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: 3GPP Profile 3\n");
+     	      break;
+	    case MOV_FOURCC('3','g','p','4'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: 3GPP Profile 4\n");
+     	      break;
+	    case MOV_FOURCC('3','g','p','5'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: 3GPP Profile 5\n");
+     	      break;
+	    case MOV_FOURCC('m','m','p','4'):
+	      mp_msg(MSGT_DEMUX,MSGL_INFO,"ISO: File Type Major Brand: Mobile ISO/IEC 14496-1 (MPEG-4 system)\n");
      	      break;
 	    default:
 	      tmp = be2me_32(tmp);  
-	      mp_msg(MSGT_DEMUX,MSGL_WARN,"MOV: File-Type unknown Major-Brand: %.4s\n",&tmp);
+	      mp_msg(MSGT_DEMUX,MSGL_WARN,"ISO: Unknown File Type Major Brand: %.4s\n",&tmp);
 	  }
-	  mp_msg(MSGT_DEMUX,MSGL_V,"MOV: File-Type Minor-Version: %d\n",
+	  mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Minor Version: %d\n",
 	      stream_read_dword(demuxer->stream));
 	  skipped += 8;
 	  // List all compatible brands
 	  for(i = 0; i < ((len-16)/4); i++) {
 	    tmp = be2me_32(stream_read_dword(demuxer->stream));
-	    mp_msg(MSGT_DEMUX,MSGL_V,"MOV: File-Type Compatible-Brands #%d: %.4s\n",i,&tmp);
+	    mp_msg(MSGT_DEMUX,MSGL_V,"ISO: File Type Compatible Brand #%d: %.4s\n",i,&tmp);
 	    skipped += 4;
 	  }
 #endif	  




More information about the MPlayer-cvslog mailing list