diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/replaygain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/replaygain.c b/apps/replaygain.c index 4b6bf29dcb..3b47974d58 100644 --- a/apps/replaygain.c +++ b/apps/replaygain.c | |||
@@ -124,7 +124,7 @@ long convert_gain(long gain) | |||
124 | gain = MAX(gain,-48 * FP_ONE); | 124 | gain = MAX(gain,-48 * FP_ONE); |
125 | gain = MIN(gain, 17 * FP_ONE); | 125 | gain = MIN(gain, 17 * FP_ONE); |
126 | 126 | ||
127 | return fp_factor(gain, FP_BITS) << (24 - FP_BITS); | 127 | return (gain) ? fp_factor(gain, FP_BITS) << (24 - FP_BITS) : 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | /* Get the sample scale factor in Q19.12 format from a gain value. Returns 0 | 130 | /* Get the sample scale factor in Q19.12 format from a gain value. Returns 0 |