[x264-devel] commit: fix x264_realloc when not using libc realloc. (Ning Xin )
git version control
git at videolan.org
Wed May 14 08:01:12 CEST 2008
x264 | branch: master | Ning Xin <nxin2000 at gmail.com> | Wed May 7 17:18:44 2008 -0600| [ee0c7dcd7d3bd3fc33ebc910453c968c24c88ebf]
fix x264_realloc when not using libc realloc.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ee0c7dcd7d3bd3fc33ebc910453c968c24c88ebf
---
common/common.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/common.c b/common/common.c
index ff8ce77..f88bf8c 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 )
More information about the x264-devel
mailing list