diff options
author | Julian Scheid <julian@sektor37.de> | 2006-02-19 12:49:17 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-02-19 12:49:17 +0000 |
commit | a7f41f91e78c9c661169d3d9de6d1b1882dbf7f0 (patch) | |
tree | 7a1b520c380f166e501fe008dabb440dffc062ee /libavformat/mov.c | |
parent | c7bb67c485c7685e2a6634a0ebabbbf9eb2f4747 (diff) | |
download | ffmpeg-a7f41f91e78c9c661169d3d9de6d1b1882dbf7f0.tar.gz |
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
Originally committed as revision 5037 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 230860ba41..36084e53c6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1835,7 +1835,7 @@ again: 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: |