changeset 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 32c331ff5b00
children 6b0dc40bf961
files libmpcodecs/ad_realaud.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);