mirror of
https://github.com/mpv-player/mpv
synced 2024-10-18 10:25:02 +02:00
Buggfix for buffer overflow calculation in plugins
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4923 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d779f76ac8
commit
e84bd83e95
@ -224,7 +224,7 @@ static int get_space(){
|
||||
static int play(void* data,int len,int flags){
|
||||
int l,i=0;
|
||||
// Limit length to avoid over flow in plugins
|
||||
int tmp = driver()->get_space();
|
||||
int tmp = get_space();
|
||||
int ret_len =(tmp<len)?tmp:len;
|
||||
if(ret_len){
|
||||
// Filter data
|
||||
|
Loading…
Reference in New Issue
Block a user