[vlc-devel] commit: x264: do not use void* with pointer arithmetic ( Rafaël Carré )

git version control git at videolan.org
Mon Dec 7 17:55:10 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 17:54:47 2009 +0100| [9f78b7ea938d5ef492c2ab6536ed2b19c0c43411] | committer: Rafaël Carré 

x264: do not use void* with pointer arithmetic

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

 modules/codec/x264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index df3f7fe..44842b8 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1183,7 +1183,7 @@ static int  Open ( vlc_object_t *p_this )
         Close( VLC_OBJECT(p_enc) );
         return VLC_ENOMEM;
     }
-    void *p_tmp = p_enc->fmt_out.p_extra;
+    uint8_t *p_tmp = p_enc->fmt_out.p_extra;
     for( i = 0; i < i_nal; i++ )
     {
         memcpy( p_tmp, nal[i].p_payload, nal[i].i_payload );




More information about the vlc-devel mailing list