[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.77,1.78

Arpi of Ize arpi at mplayerhq.hu
Thu Oct 31 20:35:40 CET 2002


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

Modified Files:
	demux_mov.c 
Log Message:
pass audio codecdata


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- demux_mov.c	16 Oct 2002 20:14:29 -0000	1.77
+++ demux_mov.c	31 Oct 2002 19:35:20 -0000	1.78
@@ -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);




More information about the MPlayer-cvslog mailing list