summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-06 01:23:39 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-06 01:23:39 +0000
commitc9271fb76d64b463d2cf72cfbbce437222b79a6f (patch)
treec9107a4dd59a78734b4e089a8eadde53f2c8e746
parent24249d2ef33af01490c0f62fa823397958f11fc3 (diff)
downloadmpv-c9271fb76d64b463d2cf72cfbbce437222b79a6f.tar.bz2
mpv-c9271fb76d64b463d2cf72cfbbce437222b79a6f.tar.xz
ehh. first chunk is counted from 1. fixed...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2104 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--demux_mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux_mov.c b/demux_mov.c
index a4fc64cd61..0ad7263210 100644
--- a/demux_mov.c
+++ b/demux_mov.c
@@ -271,7 +271,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
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);
}