diff options
author | 2005-05-23 16:17:40 +0000 | |
---|---|---|
committer | 2005-05-23 16:17:40 +0000 | |
commit | 00f615778747d8ef65537c57a88c08f3aebfe20a (patch) | |
tree | 460a03cd2549c4a72c208b6996f2fd5390275a45 | |
parent | b9586c6e1c663dbf39f88f29ce18424bbd3f966d (diff) |
Use memmove instead of memcpy for overlapping areas.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15553 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ad_dmo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_dmo.c b/libmpcodecs/ad_dmo.c index 39eaedf46d..a9053caa13 100644 --- a/libmpcodecs/ad_dmo.c +++ b/libmpcodecs/ad_dmo.c @@ -96,7 +96,7 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m 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; |