Mercurial > mplayer.hg
changeset 15560:3d1f21672c3e
No overlap allowed in memcpy, use memmove
author | hzoli |
---|---|
date | Tue, 24 May 2005 06:58:55 +0000 |
parents | 9f157ca7e3c2 |
children | 6e2c6d2553bd |
files | libmpcodecs/ad_liba52.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_liba52.c Tue May 24 06:54:19 2005 +0000 +++ b/libmpcodecs/ad_liba52.c Tue May 24 06:58:55 2005 +0000 @@ -73,7 +73,7 @@ if(length>=7 && length<=3840) break; /* we're done.*/ /* bad file => resync*/ if(sh_audio->format!=0x2000) swab(sh_audio->a_in_buffer,sh_audio->a_in_buffer,8); - memcpy(sh_audio->a_in_buffer,sh_audio->a_in_buffer+1,7); + memmove(sh_audio->a_in_buffer,sh_audio->a_in_buffer+1,7); --sh_audio->a_in_buffer_len; } mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"a52: len=%d flags=0x%X %d Hz %d bit/s\n",length,flags,sample_rate,bit_rate);