changeset 6928:668ab67dce8f

support for .mp4 with .mp3 audio
author arpi
date Mon, 05 Aug 2002 18:22:14 +0000
parents 0145bba6e201
children a3aac765967d
files libmpdemux/demux_mov.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Mon Aug 05 17:23:22 2002 +0000
+++ b/libmpdemux/demux_mov.c	Mon Aug 05 18:22:14 2002 +0000
@@ -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