Mercurial > libavformat.hg
comparison mov.c @ 967:46316f0fae06 libavformat
The current_sample field is meant to be the sample number, not an offset into
the sample data. Don't increment it by multiples of sc->sample_size.
patch by Julian Scheid, julian _-at-_ sektor37 _-dot-_ de
author | diego |
---|---|
date | Sun, 19 Feb 2006 12:49:17 +0000 |
parents | d3b4919dd5ec |
children | dbf4bc73c7c9 |
comparison
equal
deleted
inserted
replaced
966:0f674f1dd299 | 967:46316f0fae06 |
---|---|
1833 size = (sc->sample_size > 1)?sc->sample_size:sc->sample_sizes[sc->current_sample]; | 1833 size = (sc->sample_size > 1)?sc->sample_size:sc->sample_sizes[sc->current_sample]; |
1834 } | 1834 } |
1835 | 1835 |
1836 sc->current_sample++; | 1836 sc->current_sample++; |
1837 }else if(idx + 1 < sc->sample_to_chunk_sz){ | 1837 }else if(idx + 1 < sc->sample_to_chunk_sz){ |
1838 sc->current_sample += sc->sample_size * sc->sample_to_chunk[idx].count; | 1838 sc->current_sample += sc->sample_to_chunk[idx].count; |
1839 } | 1839 } |
1840 | 1840 |
1841 readchunk: | 1841 readchunk: |
1842 dprintf("chunk: %lli -> %lli (%i)\n", offset, offset + size, size); | 1842 dprintf("chunk: %lli -> %lli (%i)\n", offset, offset + size, size); |
1843 if(size == 0x0FFFFFFF) | 1843 if(size == 0x0FFFFFFF) |