[vlc-commits] LPCM: fix 20/24-bit decoding
Rafaël Carré
git at videolan.org
Mon Nov 18 19:36:55 CET 2013
vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Mon Nov 18 19:26:39 2013 +0100| [13bd019795c5f439af868ec914e0080d9fbcc827] | committer: Jean-Baptiste Kempf
LPCM: fix 20/24-bit decoding
Fixes: #9907
(cherry picked from commit 68ca8d0b779ee20580230289d890b5b6b671abe0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=13bd019795c5f439af868ec914e0080d9fbcc827
---
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 8ad9c69..3501d38 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -1103,7 +1103,7 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
unsigned i_channels, unsigned i_channels_padding,
unsigned i_bits )
{
- if( i_channels_padding > 0 )
+ if( i_bits != 16 || i_channels_padding > 0 )
{
uint8_t *p_src = p_block->p_buffer;
uint8_t *p_dst = p_aout_buffer->p_buffer;
More information about the vlc-commits
mailing list