diff --git a/OpenNI2-FreenectDriver/src/VideoStream.hpp b/OpenNI2-FreenectDriver/src/VideoStream.hpp index 5fa2939d..6acde727 100644 --- a/OpenNI2-FreenectDriver/src/VideoStream.hpp +++ b/OpenNI2-FreenectDriver/src/VideoStream.hpp @@ -52,7 +52,7 @@ namespace FreenectDriver if (timestamp < prev_timestamp) { uint32_t prev_int = static_cast(prev_timestamp); - uint64_t temp_delta = std::abs(timestamp - prev_int); + uint64_t temp_delta = timestamp - prev_int; prev_timestamp += temp_delta; } else { prev_timestamp = timestamp;