Commit a5d1444e authored by Max Kellermann's avatar Max Kellermann

pcm_pack: fix regression in unpack_sample()

Should have been "==", not "!=".
parent 55708b39
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment