[MPlayer-cvslog] CVS: main/libmpdemux cache2.c,1.33,1.34

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Apr 9 20:16:32 CEST 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv20761

Modified Files:
	cache2.c 
Log Message:
avoid cache fill status overflow with caches > ca. 20 MB


Index: cache2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cache2.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- cache2.c	14 Jan 2006 04:09:48 -0000	1.33
+++ cache2.c	9 Apr 2006 18:16:29 -0000	1.34
@@ -110,7 +110,7 @@
     total+=len;
     
   }
-  cache_fill_status=100*(s->max_filepos-s->read_filepos)/s->buffer_size;
+  cache_fill_status=(s->max_filepos-s->read_filepos)/(s->buffer_size / 100);
   return total;
 }
 




More information about the MPlayer-cvslog mailing list