From 17a367e0c43fe255f5736b8fe07110b541183e8e Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 9 Jul 2020 18:12:38 -0400 Subject: [PATCH] FS#12966: display '+' for positive replaygain values Change-Id: I976d5511096c2d4d19eb14fa1c6adf8dd3cd9006 --- lib/rbcodec/metadata/replaygain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)