Mercurial > mplayer.hg
changeset 5216:228971e444ea
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.
author | albeu |
---|---|
date | Wed, 20 Mar 2002 09:48:47 +0000 |
parents | f2896a466e26 |
children | 3e7152b383ca |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Wed Mar 20 09:45:39 2002 +0000 +++ b/mplayer.c Wed Mar 20 09:48:47 2002 +0000 @@ -1449,6 +1449,8 @@ ,(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; }