mirror of https://github.com/mpv-player/mpv
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:
parent
f1c7edfaa6
commit
0f35f8354e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue