Mercurial > mplayer.hg
changeset 7715:9774d0733dfa
src and dest buffers may overlap
author | pl |
---|---|
date | Fri, 11 Oct 2002 23:55:04 +0000 |
parents | 6973a985ac2a |
children | d8aaa4163dea |
files | libaf/af_delay.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af_delay.c Fri Oct 11 21:22:55 2002 +0000 +++ b/libaf/af_delay.c Fri Oct 11 23:55:04 2002 +0000 @@ -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); }