[vlc-devel] commit: faad: remove broken vlc_memcpy() instead of memmove() ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 30 16:12:13 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 30 17:11:21 2009 +0300| [394e1775e9f8b79caf7600a40033e5eaed2e29c9] | committer: Rémi Denis-Courmont 

faad: remove broken vlc_memcpy() instead of memmove()

We do not need to copy here anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=394e1775e9f8b79caf7600a40033e5eaed2e29c9
---

 modules/codec/faad.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index 2c5c885..03327bf 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -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;
             }
         }




More information about the vlc-devel mailing list