changeset 12736:45d1c8f0772d

Remove borken index fixup (breaks more than it fixes)
author ranma
date Wed, 30 Jun 2004 22:29:23 +0000
parents 5af0b22d55a6
children ac56419ba6db
files libmpdemux/aviheader.c
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Wed Jun 30 22:00:53 2004 +0000
+++ b/libmpdemux/aviheader.c	Wed Jun 30 22:29:23 2004 +0000
@@ -373,19 +373,6 @@
 	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 */