# HG changeset patch # User reimar # Date 1144606589 0 # Node ID ac7eaa0313c224960abb9f3ef660ec72738372e8 # Parent 2ee39341b7a6b5dc4975aa327e08dee702f99831 avoid cache fill status overflow with caches > ca. 20 MB diff -r 2ee39341b7a6 -r ac7eaa0313c2 libmpdemux/cache2.c --- a/libmpdemux/cache2.c Sun Apr 09 13:52:45 2006 +0000 +++ b/libmpdemux/cache2.c Sun Apr 09 18:16:29 2006 +0000 @@ -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; }