Skip to content

Commit

Permalink
fix previous commit
Browse files Browse the repository at this point in the history
I had the wrong code in my local repo
  • Loading branch information
MonoS authored Aug 2, 2024
1 parent f896382 commit 6cf4c04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ int main(int32_t argc, char** argv)
}
if (doDelay) {
if ( cmd.delay < 0
&& header.pts1 < abs(cmd.delay)) {
&& header.pts < abs(cmd.delay)) {
std::fprintf(stderr, "Object at timestamp %s starts before the full delay amount, it was set to start at 0!\n", timestampString);
header.pts1 = 0;
header.pts = 0;
}
else {
header.pts1 = header.pts1 + cmd.delay;
header.pts = header.pts + cmd.delay;
}
}

Expand Down

0 comments on commit 6cf4c04

Please sign in to comment.