diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-07 01:23:37 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-07 01:23:37 +0000 |
commit | 0f35f8354e134603d08b5849c553d4205c67a31d (patch) | |
tree | 06a3c56b27bf53abccc75195dec4cffd22b2e49d /libmpdemux | |
parent | f1c7edfaa6d5fd616b786224bc6f92eeee2e7e1e (diff) |
Fix audio samplerates below 7000 Hz.
Patch from John Koleszar, jkoleszar on2 com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22482 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mov.c b/libmpdemux/demux_mov.c index d0849da0f1..784ee4a323 100644 --- a/libmpdemux/demux_mov.c +++ b/libmpdemux/demux_mov.c @@ -740,7 +740,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak trak->durmap[0].num, trak->timescale/trak->durmap[0].dur, char2short(trak->stdata,24)/trak->durmap[0].dur);*/ sh->samplerate=char2short(trak->stdata,24); - if((sh->samplerate < 7000) && trak->durmap) { + if((sh->samplerate < 7000) && trak->durmap && trak->durmap[0].dur > 1) { switch(char2short(trak->stdata,24)/trak->durmap[0].dur) { // TODO: add more cases. case 31: |