summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-18 15:18:25 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-18 15:18:25 +0000
commitdae5b496fd3d9d64ebef6312c2c81764be7c39ac (patch)
treebba29ae88ee4c52c6f22779b0fad61912fc3ab66 /libavformat
parentc7e63546dc38616eb04a2d463170b3c247556149 (diff)
fix seeking, typo provoking hard segfault
Originally committed as revision 5402 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 07e9d125ed..b2ee0695ac 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2103,7 +2103,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
msc->current_sample += (msc->sample_to_chunk[msc->sample_to_chunk_index + 1].first - msc->sample_to_chunk[msc->sample_to_chunk_index].first) \
* msc->sample_to_chunk[msc->sample_to_chunk_index].count;
}
- msc->current_sample += (msc->next_chunk - (msc->sample_to_chunk[msc->sample_to_chunk_index].first - 1)) * sc->sample_to_chunk[msc->sample_to_chunk_index].count;
+ msc->current_sample += (msc->next_chunk - (msc->sample_to_chunk[msc->sample_to_chunk_index].first - 1)) * msc->sample_to_chunk[msc->sample_to_chunk_index].count;
msc->left_in_chunk = msc->sample_to_chunk[msc->sample_to_chunk_index].count - 1;
// Find corresponding position in stts (used later to compute dts)
sample = 0;