mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
Remove borken index fixup (breaks more than it fixes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12737 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9cc051e7d8
commit
f6c7658fef
@ -373,19 +373,6 @@ while(1){
|
||||
le2me_AVIINDEXENTRY((AVIINDEXENTRY*)priv->idx + i);
|
||||
chunksize-=priv->idx_size<<4;
|
||||
if(verbose>=2) print_index(priv->idx,priv->idx_size);
|
||||
/*
|
||||
* Fixup index for files >4GB
|
||||
*/
|
||||
for (i = 0; i < priv->idx_size; i++) {
|
||||
AVIINDEXENTRY *idx = (AVIINDEXENTRY*)priv->idx + i;
|
||||
idx->dwFlags &= 0xffff;
|
||||
if (idx->dwChunkOffset < last_off) {
|
||||
mp_msg(MSGT_HEADER,MSGL_WARN,"Index offset going backwards (last=%08X, now=%08X), compensating...\n", last_off, idx->dwChunkOffset);
|
||||
base += 0x100000000LL;
|
||||
}
|
||||
idx->dwFlags |= base >> 16;
|
||||
last_off = idx->dwChunkOffset;
|
||||
}
|
||||
}
|
||||
break;
|
||||
/* added May 2002 */
|
||||
|
Loading…
Reference in New Issue
Block a user