# HG changeset patch # User uau # Date 1173230617 0 # Node ID ba459e2e1187da3e7f9638ad22d1bf2149cc5058 # Parent 979b2aa16e80ece7815e520cfb1a8a544ab9f727 Fix audio samplerates below 7000 Hz. Patch from John Koleszar, jkoleszar on2 com diff -r 979b2aa16e80 -r ba459e2e1187 libmpdemux/demux_mov.c --- a/libmpdemux/demux_mov.c Tue Mar 06 22:53:52 2007 +0000 +++ b/libmpdemux/demux_mov.c Wed Mar 07 01:23:37 2007 +0000 @@ -740,7 +740,7 @@ 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: