[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.79,1.80
Arpi of Ize
arpi at mplayerhq.hu
Sat Nov 2 23:39:23 CET 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv9395
Modified Files:
demux_mov.c
Log Message:
fix possible sig8 - found by Alex
Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- demux_mov.c 31 Oct 2002 23:16:27 -0000 1.79
+++ demux_mov.c 2 Nov 2002 22:39:02 -0000 1.80
@@ -865,7 +865,7 @@
sh->wf->wBitsPerSample=(trak->stdata[18]<<8)+trak->stdata[19];
// sh->wf->nSamplesPerSec=trak->timescale;
sh->wf->nSamplesPerSec=(trak->stdata[24]<<8)+trak->stdata[25];
- if(trak->stdata_len >= 44 && trak->stdata[9]>=1){
+ if(trak->stdata_len >= 44 && trak->stdata[9]>=1 && char2int(trak->stdata,28)>0){
//Audio header: samp/pack=4096 bytes/pack=743 bytes/frame=1486 bytes/samp=2
sh->wf->nAvgBytesPerSec=(sh->wf->nChannels*sh->wf->nSamplesPerSec*
char2int(trak->stdata,32)+char2int(trak->stdata,28)/2)
More information about the MPlayer-cvslog
mailing list