Skip to content

spa: audioconvert: use unsigned 64-bit integer for creating divisor

The main change:

spa: audioconvert: use unsigned 64-bit integer for creating divisor

Using `int` results in UndefinedBehaviorSanitizer errors
when `noise::intensity` is 31 as that would shift the 1 into
the sign bit of a signed integer type.

Plus another two commits: adding range check for noise::intensity and using SPA_N_ELEMENTS().

Edited by Barnabás Pőcze

Merge request reports