aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/MadDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-02 14:06:05 +0100
committerMax Kellermann <max@duempel.org>2014-11-02 14:06:05 +0100
commit303d67aed2da79d4ddaa3a52093ed42ae9da064d (patch)
tree060580f4c17b5d30d1e78e584df03c795ce4e1d7 /src/decoder/plugins/MadDecoderPlugin.cxx
parent575fbad254a1ce67530bf2aedc9852c89c072c3f (diff)
parent6a7f6cdacd81877276563c42fdeacad3a8deface (diff)
downloadmpd-303d67aed2da79d4ddaa3a52093ed42ae9da064d.tar.gz
mpd-303d67aed2da79d4ddaa3a52093ed42ae9da064d.tar.xz
mpd-303d67aed2da79d4ddaa3a52093ed42ae9da064d.zip
Merge tag 'v0.19.2'
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/MadDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx
index 41efb593d..de6c9b127 100644
--- a/src/decoder/plugins/MadDecoderPlugin.cxx
+++ b/src/decoder/plugins/MadDecoderPlugin.cxx
@@ -657,7 +657,7 @@ parse_lame(struct lame *lame, struct mad_bitptr *ptr, int *bitlen)
unsigned name = mad_bit_read(ptr, 3); /* gain name */
unsigned orig = mad_bit_read(ptr, 3); /* gain originator */
unsigned sign = mad_bit_read(ptr, 1); /* sign bit */
- unsigned gain = mad_bit_read(ptr, 9); /* gain*10 */
+ int gain = mad_bit_read(ptr, 9); /* gain*10 */
if (gain && name == 1 && orig != 0) {
lame->track_gain = ((sign ? -gain : gain) / 10.0) + adj;
FormatDebug(mad_domain, "LAME track gain found: %f",