[MPlayer-cvslog] CVS: main/libmpcodecs ad_realaud.c,1.36,1.37
    Reimar Döffinger CVS 
    syncmail at mplayerhq.hu
       
    Sat Oct  1 14:35:21 CEST 2005
    
    
  
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv10612
Modified Files:
	ad_realaud.c 
Log Message:
Check for eof instead of decoding the same data over and over.
The whole code could use a lot more checks on return values...
Index: ad_realaud.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_realaud.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- ad_realaud.c	21 Jul 2005 17:03:43 -0000	1.36
+++ ad_realaud.c	1 Oct 2005 12:35:18 -0000	1.37
@@ -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);
    
    
More information about the MPlayer-cvslog
mailing list