From aa2319e1ea205975cc2df7ab1ba3f7d3678643f0 Mon Sep 17 00:00:00 2001 From: albeu Date: Wed, 20 Mar 2002 09:48:47 +0000 Subject: [PATCH] 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 --- mplayer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mplayer.c b/mplayer.c index 084f028196..bf0916ba49 100644 --- a/mplayer.c +++ b/mplayer.c @@ -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; }