-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coverity fixes #2673
coverity fixes #2673
Conversation
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #2673 +/- ##
==========================================
- Coverage 63.92% 63.89% -0.03%
==========================================
Files 103 103
Lines 22305 22313 +8
Branches 10795 10799 +4
==========================================
Hits 14258 14258
- Misses 5826 5830 +4
- Partials 2221 2225 +4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (currentStream_ == Video) | ||
if (currentStream_ == Video) { | ||
if (timeOfFrames == 0) | ||
timeOfFrames = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neheb: Did coverity complain about a possible divide-by-zero? I'm not convinced it's a bug. We're using floating point arithmetic here, so it wouldn't cause a crash - it would just compute Inf or NaN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's it. I'm not convinced it can be 0 based on the above code.
No description provided.