vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Sat Nov 15 00:37:17 2014 +0100| [234d20686d2fe81ff2f631b60b5457e507e583b1] | committer: Jean-Baptiste Kempf
VC1: use memmove instead of memcpy on overlapping memory > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=234d20686d2fe81ff2f631b60b5457e507e583b1 --- 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--; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
