Mercurial > mplayer.hg
diff libmpcodecs/ad_realaud.c @ 16624:e59617a9aea1
Check for eof instead of decoding the same data over and over.
The whole code could use a lot more checks on return values...
author | reimar |
---|---|
date | Sat, 01 Oct 2005 12:35:18 +0000 |
parents | 1cf21d852747 |
children | 6ff3379a0862 |
line wrap: on
line diff
--- a/libmpcodecs/ad_realaud.c Sat Oct 01 11:16:02 2005 +0000 +++ b/libmpcodecs/ad_realaud.c Sat Oct 01 12:35:18 2005 +0000 @@ -432,6 +432,7 @@ #if 1 if(sh->a_in_buffer_len<=0){ + if (sh->ds->eof) return 0; // fill the buffer! if (sh->format == mmioFOURCC('1','4','_','4')) { demux_read_data(sh->ds, sh->a_in_buffer, sh->wf->nBlockAlign);