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

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


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

LPCM: fix 20/24-bit decoding

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

 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