[vlc-commits] VC1: use memmove instead of memcpy on overlapping memory
Jean-Baptiste Kempf
git at videolan.org
Mon Nov 17 09:33:28 CET 2014
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov 15 00:37:17 2014 +0100| [19f48f102c886f049774ef1ca923fd878bcf28b1] | committer: Jean-Baptiste Kempf
VC1: use memmove instead of memcpy on overlapping memory
(cherry picked from commit 234d20686d2fe81ff2f631b60b5457e507e583b1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=19f48f102c886f049774ef1ca923fd878bcf28b1
---
modules/packetizer/vc1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index c1ddd64..f93f504 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -168,7 +168,7 @@ static int Open( vlc_object_t *p_this )
/* With (some) ASF the first byte has to be stripped */
if( p_extra[0] != 0x00 )
{
- memcpy( &p_extra[0], &p_extra[1], p_dec->fmt_out.i_extra - 1 );
+ memmove( &p_extra[0], &p_extra[1], p_dec->fmt_out.i_extra - 1 );
p_dec->fmt_out.i_extra--;
}
More information about the vlc-commits
mailing list