[Ffmpeg-cvslog] CVS: ffmpeg/libavformat ogg2.c,1.3,1.4

Måns Rullgård CVS mru
Tue Apr 12 15:33:25 CEST 2005


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

Modified Files:
	ogg2.c 
Log Message:
fix seeking bug


Index: ogg2.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/ogg2.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ogg2.c	10 Apr 2005 17:25:54 -0000	1.3
+++ ogg2.c	12 Apr 2005 13:33:22 -0000	1.4
@@ -554,7 +554,7 @@
     ogg_save (s);
 
     while (min <= max){
-        uint64_t p = min + (max - min) * target_ts / (tmax - tmin);
+        uint64_t p = min + (max - min) * (target_ts - tmin) / (tmax - tmin);
         int i = -1;
 
         url_fseek (bc, p, SEEK_SET);





More information about the ffmpeg-cvslog mailing list