changeset 15357:9bebc73be6fa

Fix audio playback for no-sound-3gp.3gp (amr nb) Patch by Richard van der Hoff * richardv * mxtelecom * com *
author rtognimp
date Fri, 06 May 2005 22:26:36 +0000
parents 94ff994b4f37
children 87121d373127
files libmpdemux/demux_mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Thu May 05 21:40:33 2005 +0000
+++ b/libmpdemux/demux_mov.c	Fri May 06 22:26:36 2005 +0000
@@ -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*