[vlc-commits] codec: aes3: fix 16bps decoding (fix #17522)

Francois Cartegnie git at videolan.org
Wed Oct 19 11:44:24 CEST 2016


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 19 11:35:10 2016 +0200| [403454dbfb0b0787be650061544c681be28a6d38] | committer: Francois Cartegnie

codec: aes3: fix 16bps decoding (fix #17522)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=403454dbfb0b0787be650061544c681be28a6d38
---

 modules/codec/aes3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/aes3.c b/modules/codec/aes3.c
index 61feef4..0a39d1a 100644
--- a/modules/codec/aes3.c
+++ b/modules/codec/aes3.c
@@ -202,7 +202,7 @@ static block_t *Decode( decoder_t *p_dec, block_t **pp_block )
         while( p_block->i_buffer / 5 )
         {
             *(p_out++) =  reverse[p_block->p_buffer[0]]
-                        | reverse[p_block->p_buffer[1]];
+                        |(reverse[p_block->p_buffer[1]] <<  8);
             *(p_out++) = (reverse[p_block->p_buffer[2]] >>  4)
                        | (reverse[p_block->p_buffer[3]] <<  4)
                        | (reverse[p_block->p_buffer[4]] << 12);



More information about the vlc-commits mailing list