[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.114,1.115

Diego Biurrun CVS diego
Sun Feb 19 13:49:20 CET 2006


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

Modified Files:
	mov.c 
Log Message:
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 


Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- mov.c	18 Feb 2006 09:08:34 -0000	1.114
+++ mov.c	19 Feb 2006 12:49:17 -0000	1.115
@@ -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:





More information about the ffmpeg-cvslog mailing list