Commit a0194ef6 authored by Ning Xin's avatar Ning Xin Committed by Loren Merritt

fix x264_realloc when not using libc realloc.

parent 1baca94c
......@@ -764,8 +764,8 @@ void *x264_realloc( void *p, int i_size )
uint8_t * p_new;
if( p )
{
i_old_size = *( (int*) ( (uint8_t*) p ) - sizeof( void ** ) -
sizeof( int ) );
i_old_size = *( (int*) ( (uint8_t*) p - sizeof( void ** ) -
sizeof( int ) ) );
}
p_new = x264_malloc( i_size );
if( i_old_size > 0 && i_size > 0 )
......
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