webrtc_m130/common_audio
Mirko Bonadei 83a95f748f Avoid integer overflow detected by the compiler.
Trying to calculate std::abs(min_int) results in an int overflow.

Original author: asmok@.

Bug: None
Change-Id: I984e9ba4f48411a583a55cc3f9c66c9a1cc8dc92
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/318120
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40660}
2023-08-30 08:24:30 +00:00
..
2022-09-27 06:55:31 +00:00