[vlc-commits] lpcm bd: fix decoding of 16 bits with channels padding
Rafaël Carré
git at videolan.org
Wed Nov 20 12:26:06 CET 2013
vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Mon Nov 18 20:00:48 2013 +0100| [3649f9e93b644796fbcf562a71fc2dca6b2d9357] | committer: Jean-Baptiste Kempf
lpcm bd: fix decoding of 16 bits with channels padding
swab prototype is not the same as memcpy (src and dst are swapped)
(cherry picked from commit 7dcd1665a2d127a8573e29832fce1b1d88836643)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=3649f9e93b644796fbcf562a71fc2dca6b2d9357
---
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