1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 03:08:33 +00:00

Quit on eof, was broken by r17150

Noticed by LR hephooey  gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19140 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtogni 2006-07-19 18:20:25 +00:00
parent 916c35ec6b
commit c885bca73c

View File

@ -410,6 +410,8 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
if(sh->a_in_buffer_len<=0){
// fill the buffer!
if (sh->ds->eof)
return 0;
demux_read_data(sh->ds, sh->a_in_buffer, sh->wf->nBlockAlign);
sh->a_in_buffer_size=
sh->a_in_buffer_len=sh->wf->nBlockAlign;