Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integer underflow/unsigned wrapping.
The number of xrun fragments to skip is added once to ctx->jack_xruns but then subtracted multiple times (once for each stream) from the same variable. This causes the unsigned int to "underflow" and wrap around. - Use unsigned int in all calculations instead of mixing un/signed. - Remove erroneous and useless subtraction logic - Replace for loop by simple multiplication - Remove unneeded casts to float
- Loading branch information