diff options
-rw-r--r-- | src/pcm/pcm_mulaw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/pcm_mulaw.c b/src/pcm/pcm_mulaw.c index 55dc7dac..010245e3 100644 --- a/src/pcm/pcm_mulaw.c +++ b/src/pcm/pcm_mulaw.c @@ -91,7 +91,7 @@ static unsigned char s16_to_ulaw(int pcm_val) /* 2's complement (16-bit range) * unsigned char uval; if (pcm_val < 0) { - pcm_val = -pcm_val + 0x84; + pcm_val = 0x84 - pcm_val; mask = 0x7f; } else { pcm_val += 0x84; |