aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-21 21:16:46 +0100
committerMax Kellermann <max@duempel.org>2012-03-21 21:16:46 +0100
commita5d1444ef480952c73b429d43aadb943925e5aa1 (patch)
tree5a4270dc14f0395ef7327f1b2467847c462913d7
parent55708b39c3434771e62b4cd474365be8d52d03db (diff)
downloadmpd-a5d1444ef480952c73b429d43aadb943925e5aa1.tar.gz
mpd-a5d1444ef480952c73b429d43aadb943925e5aa1.tar.xz
mpd-a5d1444ef480952c73b429d43aadb943925e5aa1.zip
pcm_pack: fix regression in unpack_sample()
Should have been "==", not "!=".
-rw-r--r--src/pcm_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_pack.c b/src/pcm_pack.c
index aa241f437..921d880c0 100644
--- a/src/pcm_pack.c
+++ b/src/pcm_pack.c
@@ -59,7 +59,7 @@ unpack_sample(int32_t *dest0, const uint8_t *src)
*dest++ = *src++;
*dest++ = *src;
- if (G_BYTE_ORDER != G_LITTLE_ENDIAN)
+ if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
/* extend the sign bit to the most fourth byte */
*dest++ = *src & 0x80 ? 0xff : 0x00;
}