Hi, There is a bug in x264_realloc(common/common.c). Patch is here: 792,793c792,793 < i_old_size = *( (int*) ( (uint8_t*) p ) - sizeof( void ** ) - < sizeof( int ) ); --- > i_old_size = *( (int*) ( (uint8_t*) p - sizeof( void ** ) - > sizeof( int ) ) );