# HG changeset patch # User albeu # Date 1016617727 0 # Node ID 228971e444eae52619d463111e6d1dd3358fa1b5 # Parent f2896a466e26fdd23a843602021cc47225b4482f 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. diff -r f2896a466e26 -r 228971e444ea mplayer.c --- 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; }