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
This commit is contained in:
reimar 2006-04-09 18:16:29 +00:00
parent c93f360e3d
commit ed8211b89c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}