# HG changeset patch # User diego # Date 1140353357 0 # Node ID 46316f0fae06026a79daabced2e936dd80c0b263 # Parent 0f674f1dd299aec4f4bc88f027250c7514c63488 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 diff -r 0f674f1dd299 -r 46316f0fae06 mov.c --- a/mov.c Sun Feb 19 10:20:27 2006 +0000 +++ b/mov.c Sun Feb 19 12:49:17 2006 +0000 @@ -1835,7 +1835,7 @@ sc->current_sample++; }else if(idx + 1 < sc->sample_to_chunk_sz){ - sc->current_sample += sc->sample_size * sc->sample_to_chunk[idx].count; + sc->current_sample += sc->sample_to_chunk[idx].count; } readchunk: