1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 00:14:49 -04:00

Remote: base CRC32 number of bytes for calculation on data FEC size

This commit is contained in:
f4exb
2019-04-26 02:50:02 +02:00
parent 2833eb1b0e
commit 74a9c5d36c
4 changed files with 4 additions and 4 deletions
@@ -134,7 +134,7 @@ void UDPSinkFEC::write(const SampleVector::iterator& begin, uint32_t sampleChunk
metaData.m_tv_usec = ts_usecs % 1000000UL;
boost::crc_32_type crc32;
crc32.process_bytes(&metaData, 24);
crc32.process_bytes(&metaData, sizeof(RemoteMetaDataFEC)-4);
metaData.m_crc32 = crc32.checksum();