changeset 2103:3e55202cfdab

ehh. first chunk is counted from 1. fixed...
author arpi
date Sat, 06 Oct 2001 01:23:39 +0000
parents 569a5d7b5d8a
children a0ea8a01b0f3
files demux_mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/demux_mov.c	Sat Oct 06 00:59:45 2001 +0000
+++ b/demux_mov.c	Sat Oct 06 01:23:39 2001 +0000
@@ -271,7 +271,7 @@
 		trak->chunkmap_size=len;
 		trak->chunkmap=malloc(sizeof(mov_chunkmap_t)*len);
 		for(i=0;i<len;i++){
-		    trak->chunkmap[i].first=stream_read_dword(demuxer->stream);
+		    trak->chunkmap[i].first=stream_read_dword(demuxer->stream)-1;
 		    trak->chunkmap[i].spc=stream_read_dword(demuxer->stream);
 		    trak->chunkmap[i].sdid=stream_read_dword(demuxer->stream);
 		}