summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-06 22:26:36 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-06 22:26:36 +0000
commit875908b14f390af1cbe57ad7be36e889b7bfe732 (patch)
treeaeaa13383130e556d4b187a1327736dc11b1baf2 /libmpdemux
parent92cc26d0f42b5c30d285b8dd51972f385324bbfd (diff)
downloadmpv-875908b14f390af1cbe57ad7be36e889b7bfe732.tar.bz2
mpv-875908b14f390af1cbe57ad7be36e889b7bfe732.tar.xz
Fix audio playback for no-sound-3gp.3gp (amr nb)
Patch by Richard van der Hoff * richardv * mxtelecom * com * git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mov.c b/libmpdemux/demux_mov.c
index a1825be477..9797fa9b28 100644
--- a/libmpdemux/demux_mov.c
+++ b/libmpdemux/demux_mov.c
@@ -1041,7 +1041,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
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*