[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.150,1.151

Baptiste Coudurier CVS bcoudurier
Thu May 18 17:18:28 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv22009/libavformat

Modified Files:
	mov.c 
Log Message:
fix seeking, typo provoking hard segfault

Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- mov.c	18 May 2006 15:17:09 -0000	1.150
+++ mov.c	18 May 2006 15:18:25 -0000	1.151
@@ -2103,7 +2103,7 @@
             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;





More information about the ffmpeg-cvslog mailing list