[vlc-commits] LPCM: fix 20/24-bit decoding

Rafaël Carré git at videolan.org
Mon Nov 18 19:29:28 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Nov 18 19:26:39 2013 +0100| [68ca8d0b779ee20580230289d890b5b6b671abe0] | committer: Rafaël Carré

LPCM: fix 20/24-bit decoding

Fixes: #9907

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68ca8d0b779ee20580230289d890b5b6b671abe0
---

 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