diff options
author | Max Kellermann <max@duempel.org> | 2012-03-21 21:16:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-21 21:16:46 +0100 |
commit | a5d1444ef480952c73b429d43aadb943925e5aa1 (patch) | |
tree | 5a4270dc14f0395ef7327f1b2467847c462913d7 /src/pcm_pack.c | |
parent | 55708b39c3434771e62b4cd474365be8d52d03db (diff) | |
download | mpd-a5d1444ef480952c73b429d43aadb943925e5aa1.tar.gz mpd-a5d1444ef480952c73b429d43aadb943925e5aa1.tar.xz mpd-a5d1444ef480952c73b429d43aadb943925e5aa1.zip |
pcm_pack: fix regression in unpack_sample()
Should have been "==", not "!=".
Diffstat (limited to 'src/pcm_pack.c')
-rw-r--r-- | src/pcm_pack.c | 2 |
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; } |