summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-09 18:12:38 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-09 22:18:25 +0000
commit17a367e0c43fe255f5736b8fe07110b541183e8e (patch)
treed139e7727a68b46323c0e1b6466e09a67e4521dd
parent77f8c9c9f12f1a520467868047574fe0af7a1556 (diff)
downloadrockbox-17a367e0c43fe255f5736b8fe07110b541183e8e.tar.gz
rockbox-17a367e0c43fe255f5736b8fe07110b541183e8e.tar.bz2
rockbox-17a367e0c43fe255f5736b8fe07110b541183e8e.zip
FS#12966: display '+' for positive replaygain values
Change-Id: I976d5511096c2d4d19eb14fa1c6adf8dd3cd9006
-rw-r--r--lib/rbcodec/metadata/replaygain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/metadata/replaygain.c b/lib/rbcodec/metadata/replaygain.c
index 5e8c3a364a..7aa77cfedd 100644
--- a/lib/rbcodec/metadata/replaygain.c
+++ b/lib/rbcodec/metadata/replaygain.c
@@ -43,7 +43,7 @@ void replaygain_itoa(char* buffer, int length, long int_gain)
/* int_gain uses Q19.12 format. */
int one = abs(int_gain) >> FP_BITS;
int cent = ((abs(int_gain) & 0x0fff) * 100 + (FP_ONE/2)) >> FP_BITS;
- snprintf(buffer, length, "%s%d.%02d dB", (int_gain<0) ? "-":"", one, cent);
+ snprintf(buffer, length, "%s%d.%02d dB", (int_gain<0) ? "-":"+", one, cent);
}
static long fp_atof(const char* s, int precision)