]> git.sesse.net Git - vlc/commitdiff
VC1: use memmove instead of memcpy on overlapping memory
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 14 Nov 2014 23:37:17 +0000 (00:37 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 14 Nov 2014 23:37:17 +0000 (00:37 +0100)
modules/packetizer/vc1.c

index c1ddd645578c31b934acfc4cc246c07eede71398..f93f5046c96cb631c05d9be054b25fcfa69b5d85 100644 (file)
@@ -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--;
         }