Commit 947362db authored by Thomas Guillem's avatar 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
parent 96c67c62
......@@ -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 )];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment