1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

10l bug - 'len' was handled wrong.

found by Anssi Saari <as@sci.fi>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7406 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-09-15 15:50:28 +00:00
parent e2af621fb5
commit f81b1c6037

View File

@ -80,8 +80,8 @@ static int control(sh_audio_t *sh,int cmd,void* arg, ...)
static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
{
int len=-1;
if(!sh_audio->a_in_buffer_len)
int len=sh_audio->a_in_buffer_len;
if(len<=0)
if((len=a52_fillbuff(sh_audio))<=0) return len; /*EOF*/
sh_audio->a_in_buffer_len=0;