Mercurial > mplayer.hg
changeset 15552:7867e143a557
Use memmove instead of memcpy for overlapping areas.
author | reimar |
---|---|
date | Mon, 23 May 2005 16:17:40 +0000 |
parents | f62be65f7df3 |
children | 43af13780751 |
files | libmpcodecs/ad_dmo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_dmo.c Sun May 22 22:35:44 2005 +0000 +++ b/libmpcodecs/ad_dmo.c Mon May 23 16:17:40 2005 +0000 @@ -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;