Commit 9f78b7ea authored by Rafaël Carré's avatar Rafaël Carré

x264: do not use void* with pointer arithmetic

parent edfe05d1
...@@ -1183,7 +1183,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -1183,7 +1183,7 @@ static int Open ( vlc_object_t *p_this )
Close( VLC_OBJECT(p_enc) ); Close( VLC_OBJECT(p_enc) );
return VLC_ENOMEM; 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++ ) for( i = 0; i < i_nal; i++ )
{ {
memcpy( p_tmp, nal[i].p_payload, nal[i].i_payload ); memcpy( p_tmp, nal[i].p_payload, nal[i].i_payload );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment