From: Ning Xin Date: Wed, 7 May 2008 23:18:44 +0000 (-0600) Subject: fix x264_realloc when not using libc realloc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0194ef6806ac3249c9add16f82dc4a38cf2680e;p=libx264 fix x264_realloc when not using libc realloc. --- diff --git a/common/common.c b/common/common.c index ff8ce779..f88bf8c4 100644 --- a/common/common.c +++ b/common/common.c @@ -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 )