pcm_pack: fix regression in unpack_sample()
Should have been "==", not "!=".
This commit is contained in:
parent
55708b39c3
commit
a5d1444ef4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user