mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-25 04:29:53 +08: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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user