Skip to content

Commit

Permalink
Handle 0 frame_mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 24, 2024
1 parent 4af6e6e commit 37fef75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zm_eventstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,8 @@ void EventStream::runStream() {
// but what if we are skipping frames? We need the distance from the last frame sent
// Also, what about reverse? needs to be absolute value

delta = abs(next_frame_data->offset - last_frame_data->offset) /frame_mod;
delta = abs(next_frame_data->offset - last_frame_data->offset);
if (frame_mod) delta /= frame_mod;
Debug(2, "New delta: %fs from last frame offset %fs - next_frame_offset %fs",
FPSeconds(delta).count(),
FPSeconds(last_frame_data->offset).count(),
Expand Down

0 comments on commit 37fef75

Please sign in to comment.