1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

tscheck don't check cc if payload bit not set

This commit is contained in:
Manfred 2020-01-21 19:05:56 +01:00
parent ed5f89a0c4
commit 03cc9ae142

View File

@ -37,7 +37,7 @@ void proc_ts(int i, uint8_t *buf)
if( cc[pid] != 0 )
{
// TODO: 1 repetition allowed
if( ((cc[pid] + 1) & 0x0F) != (ccin & 0x0F) )
if( ( cc[pid] & 0x10 ) != 0 && (((cc[pid] + 1) & 0x0F) != (ccin & 0x0F)) )
cc_errors += 1;
}
cc[pid] = ccin;