diff options
author | hzoli <hzoli@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-24 06:58:55 +0000 |
---|---|---|
committer | hzoli <hzoli@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-24 06:58:55 +0000 |
commit | 8c1d197ba7f05b1444e77664c3ac846c0351436f (patch) | |
tree | c64cc5737d6046a5c765afd1b7b45cf9a711abb9 | |
parent | 813668889dbef2b9711b279ad8081b296f1881e1 (diff) |
No overlap allowed in memcpy, use memmove
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15561 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ad_liba52.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_liba52.c b/libmpcodecs/ad_liba52.c index 7457387d3d..066c433d5d 100644 --- a/libmpcodecs/ad_liba52.c +++ b/libmpcodecs/ad_liba52.c @@ -73,7 +73,7 @@ while(1){ 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); |