[MPlayer-cvslog] CVS: main/libmpcodecs ad_faad.c,1.19,1.20

Guillaume Poirier CVS syncmail at mplayerhq.hu
Sat Jul 16 00:09:32 CEST 2005


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv26037

Modified Files:
	ad_faad.c 
Log Message:
memcpy and memmove both copy memory, but when using memcpy the source and destination must not overlap, but here, they did overlap.
Committed with the kind blessing of Richard, patch by uau


Index: ad_faad.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_faad.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ad_faad.c	12 Jun 2005 13:30:40 -0000	1.19
+++ ad_faad.c	15 Jul 2005 22:09:30 -0000	1.20
@@ -238,7 +238,7 @@
       sh->a_in_buffer_len=0;
     } else {
       sh->a_in_buffer_len-=faac_finfo.bytesconsumed;
-      memcpy(sh->a_in_buffer,&sh->a_in_buffer[faac_finfo.bytesconsumed],sh->a_in_buffer_len);
+      memmove(sh->a_in_buffer,&sh->a_in_buffer[faac_finfo.bytesconsumed],sh->a_in_buffer_len);
     }
 
     if(faac_finfo.error > 0) {




More information about the MPlayer-cvslog mailing list