[MPlayer-cvslog] r22482 - trunk/libmpdemux/demux_mov.c

uau subversion at mplayerhq.hu
Wed Mar 7 02:23:37 CET 2007


Author: uau
Date: Wed Mar  7 02:23:37 2007
New Revision: 22482

Modified:
   trunk/libmpdemux/demux_mov.c

Log:
Fix audio samplerates below 7000 Hz.
Patch from John Koleszar, jkoleszar on2 com


Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c	(original)
+++ trunk/libmpdemux/demux_mov.c	Wed Mar  7 02:23:37 2007
@@ -740,7 +740,7 @@ static void lschunks(demuxer_t* demuxer,
 		    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:



More information about the MPlayer-cvslog mailing list