From: Andre Noll Date: Wed, 4 Apr 2007 08:24:29 +0000 (+0200) Subject: compress.c: fix serious typo X-Git-Tag: v0.2.16~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c5caf558a7d940b59fb66eca33c813d6ddd559bb;hp=203bfcadc14507f4d01f99099efec8ee976556b1 compress.c: fix serious typo We always compute the peak using the _adjusted_ sample value. --- diff --git a/compress.c b/compress.c index 685c3ba9..63c9b002 100644 --- a/compress.c +++ b/compress.c @@ -73,7 +73,7 @@ static ssize_t compress(char *inbuf, size_t inbuf_len, struct filter_node *fn) pcd->peak = 0; } else if (adjusted_sample > pcd->peak) - pcd->peak = sample; + pcd->peak = adjusted_sample; } else { adjusted_sample = -((-sample * pcd->current_gain) >> gain_shift);