Mercurial > libavformat.hg
comparison mov.c @ 492:0ed5d359f63a libavformat
compilation of mov.c broken patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author | michael |
---|---|
date | Tue, 06 Jul 2004 18:06:17 +0000 |
parents | 4cf46e9a1bb8 |
children | 3e85b3d73cda |
comparison
equal
deleted
inserted
replaced
491:4cf46e9a1bb8 | 492:0ed5d359f63a |
---|---|
1983 sc->next_chunk = chunk; // +1 -1 (zero based) | 1983 sc->next_chunk = chunk; // +1 -1 (zero based) |
1984 sc->sample_to_chunk_index = sample_to_chunk_idx; | 1984 sc->sample_to_chunk_index = sample_to_chunk_idx; |
1985 | 1985 |
1986 // Update other streams | 1986 // Update other streams |
1987 for (i = 0; i<mov->total_streams; i++) { | 1987 for (i = 0; i<mov->total_streams; i++) { |
1988 MOVStreamContext *msc; | |
1988 if (i == mov_idx) continue; | 1989 if (i == mov_idx) continue; |
1989 // Find the nearest 'next' chunk | 1990 // Find the nearest 'next' chunk |
1990 MOVStreamContext *msc = mov->streams[i]; | 1991 msc = mov->streams[i]; |
1991 a = 0; | 1992 a = 0; |
1992 b = msc->chunk_count - 1; | 1993 b = msc->chunk_count - 1; |
1993 while (a < b) { | 1994 while (a < b) { |
1994 m = (a + b + 1) >> 1; | 1995 m = (a + b + 1) >> 1; |
1995 if (msc->chunk_offsets[m] > chunk_file_offset) { | 1996 if (msc->chunk_offsets[m] > chunk_file_offset) { |