d/euroc: Allow zero timestamps

Negative timestamps are still not allowed, but artificially generated datasets might start at exactly zero
This commit is contained in:
Moses Turner 2022-08-10 15:52:53 +01:00 committed by Jakob Bornecrantz
parent d6df203d03
commit e5466553a2

View file

@ -434,7 +434,7 @@ euroc_player_load_next_frame(struct euroc_player *ep, bool is_left, struct xrt_f
// Create xrt_frame, it will be freed by FrameMat destructor
EUROC_ASSERT(xf == NULL || xf->reference.count > 0, "Must be given a valid or NULL frame ptr");
EUROC_ASSERT(timestamp > 0, "Unexpected negative timestamp");
EUROC_ASSERT(timestamp >= 0, "Unexpected negative timestamp");
//! @todo Not using xrt_stereo_format because we use two sinks. It would
//! probably be better to refactor everything to use stereo frames instead.
FrameMat::Params params{XRT_STEREO_FORMAT_NONE, static_cast<uint64_t>(timestamp)};