changeset 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 0f674f1dd299
children dbf4bc73c7c9
files mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: