[Mplayer-cvslog] CVS: main/libaf af_delay.c,1.3,1.4

pl pl at mplayerhq.hu
Sat Oct 12 01:55:20 CEST 2002


Update of /cvsroot/mplayer/main/libaf
In directory mail:/var/tmp.root/cvs-serv10790

Modified Files:
	af_delay.c 
Log Message:
src and dest buffers may overlap


Index: af_delay.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_delay.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- af_delay.c	8 Oct 2002 10:20:36 -0000	1.3
+++ af_delay.c	11 Oct 2002 23:55:04 -0000	1.4
@@ -103,7 +103,7 @@
     // Copy beginning of buffer to beginning of output buffer
     memcpy(l->audio,s->buf,c->len);
     // Move buffer left
-    memcpy(s->buf,s->buf+c->len,s->len-c->len);
+    memmove(s->buf,s->buf+c->len,s->len-c->len);
     // Save away current audio to end of buffer
     memcpy(s->buf+s->len-c->len,c->audio,c->len);
   }




More information about the MPlayer-cvslog mailing list