changeset 8003:6e48ba1cd342

pass audio codecdata
author arpi
date Thu, 31 Oct 2002 19:35:20 +0000
parents 84ff79ba83f0
children 30789258ca66
files libmpdemux/demux_mov.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Thu Oct 31 18:13:56 2002 +0000
+++ b/libmpdemux/demux_mov.c	Thu Oct 31 19:35:20 2002 +0000
@@ -797,12 +797,21 @@
 		mp_msg(MSGT_DEMUX, MSGL_INFO, "Audio bits: %d  chans: %d  rate: %d\n",
 		    trak->stdata[19],trak->stdata[17],sh->samplerate);
 
-		if(trak->stdata_len >= 44 && trak->stdata[9]>=1)
+		if(trak->stdata_len >= 44 && trak->stdata[9]>=1){
 		  mp_msg(MSGT_DEMUX,MSGL_V,"Audio header: samp/pack=%d bytes/pack=%d bytes/frame=%d bytes/samp=%d  \n",
 		    char2int(trak->stdata,28),
 		    char2int(trak->stdata,32),
 		    char2int(trak->stdata,36),
 		    char2int(trak->stdata,40));
+		  if(trak->stdata_len>=44+8){
+		    int len=char2int(trak->stdata,44);
+		    int fcc=char2int(trak->stdata,48);
+		    // we have extra audio headers!!!
+		    printf("Audio extra header: len=%d  fcc=0x%X\n",len,fcc);
+		    sh->codecdata_len = len-8;
+		    sh->codecdata = trak->stdata+44+8;
+		  }
+		}
 
 		if((trak->stdata[9]==0) && trak->stdata_len >= 36) { // version 0 with extra atoms
 		    int atom_len = char2int(trak->stdata,28);