[vlc-commits] lpcm bd: fix decoding of 16 bits with channels padding
Rafaël Carré
git at videolan.org
Mon Nov 18 20:01:48 CET 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Nov 18 20:00:48 2013 +0100| [7dcd1665a2d127a8573e29832fce1b1d88836643] | committer: 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)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dcd1665a2d127a8573e29832fce1b1d88836643
---
modules/codec/lpcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 3501d38..eb9793f 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -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];
More information about the vlc-commits
mailing list