[MPlayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.119,1.120

Roberto Togni CVS syncmail at mplayerhq.hu
Sat May 7 00:26:38 CEST 2005


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv13538

Modified Files:
	demux_mov.c 
Log Message:
Fix audio playback for no-sound-3gp.3gp (amr nb)
Patch by Richard van der Hoff * richardv * mxtelecom * com *


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- demux_mov.c	5 May 2005 21:40:33 -0000	1.119
+++ demux_mov.c	6 May 2005 22:26:36 -0000	1.120
@@ -1041,7 +1041,7 @@
 		sh->wf->nChannels=sh->channels;
 		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];
+		sh->wf->nSamplesPerSec=sh->samplerate;
 		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*




More information about the MPlayer-cvslog mailing list