]> git.sesse.net Git - vlc/commitdiff
x264: do not use void* with pointer arithmetic
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:54:47 +0000 (17:54 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:54:47 +0000 (17:54 +0100)
modules/codec/x264.c

index df3f7fe127c76e2b0f3e4cfdb5546c56f4a1f33c..44842b819e17c98de1dbf8e697ec228fbc29ad6e 100644 (file)
@@ -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 );