faad: remove broken vlc_memcpy() instead of memmove()
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Aug 2009 14:11:21 +0000 (17:11 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Aug 2009 14:11:21 +0000 (17:11 +0300)
We do not need to copy here anyway.

modules/codec/faad.c

index 2c5c885..03327bf 100644 (file)
@@ -222,9 +222,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
             /* FIXME: multiple blocks per frame */
             if( p_block->i_buffer > i_header_size )
             {
-                vlc_memcpy( p_block->p_buffer,
-                            p_block->p_buffer + i_header_size,
-                            p_block->i_buffer - i_header_size );
+                p_block->p_buffer += i_header_size;
                 p_block->i_buffer -= i_header_size;
             }
         }