# HG changeset patch # User rtognimp # Date 1115418396 0 # Node ID 9bebc73be6fac5d4852f8011cad45a61836064b0 # Parent 94ff994b4f377d12212fad40e448a6c8df881c60 Fix audio playback for no-sound-3gp.3gp (amr nb) Patch by Richard van der Hoff * richardv * mxtelecom * com * diff -r 94ff994b4f37 -r 9bebc73be6fa libmpdemux/demux_mov.c --- 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*