Commit 7dcd1665 authored by Rafaël Carré's avatar Rafaël Carré

lpcm bd: fix decoding of 16 bits with channels padding

swab prototype is not the same as memcpy (src and dst are swapped)
parent 7fc3ea2f
......@@ -1115,7 +1115,7 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
memcpy( p_dst, p_src, i_channels * i_bits / 8 );
#else
if (i_bits == 16) {
swab( p_dst, p_src, (i_channels + i_channels_padding) * i_bits / 8 );
swab( p_src, p_dst, (i_channels + i_channels_padding) * i_bits / 8 );
} else {
p_dst[0] = 0;
p_dst[1] = p_src[2];
......
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