# HG changeset patch # User reimar # Date 1128170118 0 # Node ID e59617a9aea1018062b35d23f42021633e3d226c # Parent 32c331ff5b00be9ad83302bae04386e0b2bb373a Check for eof instead of decoding the same data over and over. The whole code could use a lot more checks on return values... diff -r 32c331ff5b00 -r e59617a9aea1 libmpcodecs/ad_realaud.c --- 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);