stop trying to decode faad audio, when last decoded length is <0

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16337 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2005-09-01 15:25:03 +00:00
parent 2fefa2cd09
commit 751ec931a7
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
int j = 0, len = 0;
void *faac_sample_buffer;
while(len < minlen) {
while(len < minlen && len > 0) {
/* update buffer for raw aac streams: */
if(!sh->codecdata_len)