Mercurial > mplayer.hg
changeset 27248:f45c38163037
Change a broken check. FFMAX does not work as intended because trak->chunkmap[i].first
is unsigned and j is signed.
author | reimar |
---|---|
date | Mon, 14 Jul 2008 15:49:59 +0000 |
parents | 66de7e5084dc |
children | 4be2b34aa431 |
files | libmpdemux/demux_mov.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Sun Jul 13 22:27:50 2008 +0000 +++ b/libmpdemux/demux_mov.c Mon Jul 14 15:49:59 2008 +0000 @@ -169,8 +169,8 @@ 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; }