[MPlayer-cvslog] CVS: main/libmpcodecs ad_liba52.c,1.17,1.18

Zoltan Hidvegi CVS syncmail at mplayerhq.hu
Tue May 24 08:58:58 CEST 2005


CVS change done by Zoltan Hidvegi CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv9358

Modified Files:
	ad_liba52.c 
Log Message:
No overlap allowed in memcpy, use memmove

Index: ad_liba52.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_liba52.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ad_liba52.c	24 May 2005 06:54:19 -0000	1.17
+++ ad_liba52.c	24 May 2005 06:58:55 -0000	1.18
@@ -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);




More information about the MPlayer-cvslog mailing list