[vlc-commits] packetizer/mlp: don't check parity on sync frames

Thomas Guillem git at videolan.org
Thu Feb 2 16:07:01 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb  2 15:00:44 2017 +0100| [947362db184089cb45a015b4e5cada10a58b1c89] | committer: Thomas Guillem

packetizer/mlp: don't check parity on sync frames

This check was failing with Atmos sync frames.
Sync frames should be checked via the crc (see TODO).

Fix #15478

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

 modules/packetizer/mlp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 344e70f..6fee2c9 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -214,8 +214,7 @@ static int SyncInfo( const uint8_t *p_hdr, bool *pb_mlp, mlp_header_t *p_mlp )
             return 0;
     }
 
-    /* Check parity TODO even with major sync */
-    if( 1 )
+    if( !b_has_sync )
     {
         int i_tmp = 0 ^ p_hdr[0] ^ p_hdr[1] ^ p_hdr[2] ^ p_hdr[3];
         const uint8_t *p = &p_hdr[4 + ( b_has_sync ? 28 : 0 )];



More information about the vlc-commits mailing list