summaryrefslogtreecommitdiff
path: root/src/plugin_common
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2003-01-10 04:36:36 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2003-01-10 04:36:36 +0000
commitbef3bc370e004b3eb76681df977657e78ab2a957 (patch)
treef6c16c068f4e01b43a7d45b1ab337d88194e6ab2 /src/plugin_common
parent75d78a352e2e89646fe2ca6f66c23587d3a8f968 (diff)
downloadflac-bef3bc370e004b3eb76681df977657e78ab2a957.tar.gz
fix bug shown by X-Fixer in ...apply_gain()
Diffstat (limited to 'src/plugin_common')
-rw-r--r--src/plugin_common/replaygain_synthesis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin_common/replaygain_synthesis.c b/src/plugin_common/replaygain_synthesis.c
index 0af79151..0fab773d 100644
--- a/src/plugin_common/replaygain_synthesis.c
+++ b/src/plugin_common/replaygain_synthesis.c
@@ -358,8 +358,8 @@ int FLAC__plugin_common__apply_gain(FLAC__byte *data_out, FLAC__int32 *input, un
-1073741824, /* 31 bits-per-sample */
(FLAC__int64)(-1073741824) * 2 /* 32 bits-per-sample */
};
- const FLAC__int32 conv_factor = conv_factors_[source_bps];
- const FLAC__int64 hard_clip_factor = hard_clip_factors_[source_bps];
+ const FLAC__int32 conv_factor = conv_factors_[target_bps];
+ const FLAC__int64 hard_clip_factor = hard_clip_factors_[target_bps];
/*
* The integer input coming in has a varying range based on the
* source_bps. We want to normalize it to [-1.0, 1.0) so instead