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
This commit is contained in:
uau 2007-03-07 01:23:37 +00:00
parent f1c7edfaa6
commit 0f35f8354e
1 changed files with 1 additions and 1 deletions

View File

@ -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: