diff options
author | 2006-04-09 18:16:29 +0000 | |
---|---|---|
committer | 2006-04-09 18:16:29 +0000 | |
commit | ed8211b89caaadd3360b8b5a90fc809a0aa48483 (patch) | |
tree | df6a779e5164a5af11dd2d3c0a48d0c78f1d104f /libmpdemux/cache2.c | |
parent | c93f360e3d357d2447e34a97048213c149bdc42b (diff) |
avoid cache fill status overflow with caches > ca. 20 MB
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18068 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/cache2.c')
-rw-r--r-- | libmpdemux/cache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/cache2.c b/libmpdemux/cache2.c index 6b44598dd0..6fbf19c5f9 100644 --- a/libmpdemux/cache2.c +++ b/libmpdemux/cache2.c @@ -110,7 +110,7 @@ int cache_read(cache_vars_t* s,unsigned char* buf,int size){ 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; } |