[MPlayer-cvslog] r27280 - trunk/libmpdemux/demux_mov.c
reimar
subversion at mplayerhq.hu
Mon Jul 14 17:49:59 CEST 2008
Author: reimar
Date: Mon Jul 14 17:49:59 2008
New Revision: 27280
Log:
Change a broken check. FFMAX does not work as intended because trak->chunkmap[i].first
is unsigned and j is signed.
Modified:
trunk/libmpdemux/demux_mov.c
Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c (original)
+++ trunk/libmpdemux/demux_mov.c Mon Jul 14 17:49:59 2008
@@ -169,8 +169,8 @@ void mov_build_index(mov_track_t* trak,i
i=trak->chunkmap_size;
while(i>0){
--i;
- j=FFMAX(trak->chunkmap[i].first, 0);
- for(;j<last;j++){
+ j=trak->chunkmap[i].first;
+ for(;j>=0 && j<last;j++){
trak->chunks[j].desc=trak->chunkmap[i].sdid;
trak->chunks[j].size=trak->chunkmap[i].spc;
}
More information about the MPlayer-cvslog
mailing list