mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 11:55:42 +00:00
Change a broken check. FFMAX does not work as intended because trak->chunkmap[i].first
is unsigned and j is signed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27280 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5212b72ec9
commit
95cee5309f
@ -169,8 +169,8 @@ void mov_build_index(mov_track_t* trak,int timescale){
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user