Fix endless loop at end of an audio only file. It occured when the last chunk

of audio data was smaller than the ao min outburst.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5217 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-03-20 09:48:47 +00:00
parent 366c057ac4
commit aa2319e1ea
1 changed files with 2 additions and 0 deletions

View File

@ -1449,6 +1449,8 @@ if(!sh_video) {
,(sh_audio->timer>0.5)?100.0*audio_time_usage/(double)sh_audio->timer:0
,cache_fill_status
);
if(d_audio->eof && sh_audio->a_buffer_len < ao_data.outburst)
eof = PT_NEXT_ENTRY;
goto read_input;
}