[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.68,1.69

Arpi of Ize arpi at mplayerhq.hu
Fri Jul 12 15:50:47 CEST 2002


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

Modified Files:
	demux_mov.c 
Log Message:
workaround for empty version1 audio headers (bugreport by Sascha Sommer)


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- demux_mov.c	7 Jul 2002 15:21:30 -0000	1.68
+++ demux_mov.c	12 Jul 2002 13:50:35 -0000	1.69
@@ -1350,7 +1350,7 @@
 //    printf("X = %d\n", x);
     /* the following stuff is audio related */
     if (trak->type == MOV_TRAK_AUDIO){
-      if(trak->stdata_len>=44 && trak->stdata[9]>=1){
+      if(trak->stdata_len>=44 && trak->stdata[9]>=1 && char2int(trak->stdata,28)>0){
         // stsd version 1 - we have audio compression ratio info:
 	x/=char2int(trak->stdata,28); // samples/packet
 //	x*=char2int(trak->stdata,32); // bytes/packet




More information about the MPlayer-cvslog mailing list