[MPlayer-cvslog] CVS: main/libmpcodecs ad_dmo.c,1.3,1.4
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Mon May 23 18:17:43 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv6318
Modified Files:
ad_dmo.c
Log Message:
Use memmove instead of memcpy for overlapping areas.
Index: ad_dmo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_dmo.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ad_dmo.c 21 Sep 2004 20:34:46 -0000 1.3
+++ ad_dmo.c 23 May 2005 16:17:40 -0000 1.4
@@ -96,7 +96,7 @@
sh_audio->a_in_buffer_len=0;
} else {
sh_audio->a_in_buffer_len-=size_in;
- memcpy(sh_audio->a_in_buffer,&sh_audio->a_in_buffer[size_in],sh_audio->a_in_buffer_len);
+ memmove(sh_audio->a_in_buffer,&sh_audio->a_in_buffer[size_in],sh_audio->a_in_buffer_len);
}
// len=size_out;
return size_out;
More information about the MPlayer-cvslog
mailing list