From dae5b496fd3d9d64ebef6312c2c81764be7c39ac Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 18 May 2006 15:18:25 +0000 Subject: [PATCH] fix seeking, typo provoking hard segfault Originally committed as revision 5402 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 07e9d12..b2ee069 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; -- 2.7.4