aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/FormatConverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FormatConverter.cpp b/src/FormatConverter.cpp
index fc4cc2f..e8e76ed 100644
--- a/src/FormatConverter.cpp
+++ b/src/FormatConverter.cpp
@@ -78,8 +78,8 @@ int FormatConverter::process(Buffer* const dataIn, Buffer* dataOut)
out[i] = 0;
num_clipped_samples++;
}
- else if (samp > INT8_MAX) {
- out[i] = INT8_MAX;
+ else if (samp > UINT8_MAX) {
+ out[i] = UINT8_MAX;
num_clipped_samples++;
}
else {