mirror of https://github.com/mpv-player/mpv
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:
parent
2fefa2cd09
commit
751ec931a7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue