[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.70,1.71

Arpi of Ize arpi at mplayerhq.hu
Mon Aug 5 20:22:16 CEST 2002


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

Modified Files:
	demux_mov.c 
Log Message:
support for .mp4 with .mp3 audio


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- demux_mov.c	1 Aug 2002 21:16:57 -0000	1.70
+++ demux_mov.c	5 Aug 2002 18:22:14 -0000	1.71
@@ -777,10 +777,16 @@
 			    
 			    sh->i_bps = esds.avgBitrate/8; 
 
+//			    printf("######## audio format = %d ########\n",esds.objectTypeId);
+			    if(esds.objectTypeId==107)
+				sh->format=0x55; // .mp3
+
 			    // dump away the codec specific configuration for the AAC decoder
+			    if(esds.decoderConfigLen){
 			    sh->codecdata_len = esds.decoderConfigLen;
 			    sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
 			    memcpy(sh->codecdata, esds.decoderConfig, sh->codecdata_len);
+			    }
 			  }
 			  mp4_free_esds(&esds); // freeup esds mem
 #if 0




More information about the MPlayer-cvslog mailing list