Fix syntax and comparison errors in M17Protocol.cpp

pull/23/head
Dave Behnke 1 month ago
parent 7417a08946
commit 828dbee960

@ -229,8 +229,7 @@ void CM17Protocol::OnDvHeaderPacketIn(std::unique_ptr<CDvHeaderPacket> &Header,
//////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////
// queue helper // queue helper
}
}
// Global buffer for partial M17 frames (simple module-based cache) // Global buffer for partial M17 frames (simple module-based cache)
// Note: In a real multi-threaded environment per-module, this should be in m_StreamsCache // Note: In a real multi-threaded environment per-module, this should be in m_StreamsCache
@ -327,7 +326,7 @@ void CM17Protocol::HandleQueue(void)
// Do we have enough for a full M17 frame? (2x input frames) // Do we have enough for a full M17 frame? (2x input frames)
// M17 Frame is 40ms. Input is 20ms. So we need 2 inputs. // M17 Frame is 40ms. Input is 20ms. So we need 2 inputs.
// Expected size: 16 bytes for 3200, 8 bytes for 1600. // Expected size: 16 bytes for 3200, 8 bytes for 1600.
int targetSize = bytesPerFrame * 2; size_t targetSize = (size_t)(bytesPerFrame * 2);
if (buf.size() >= targetSize || packet->IsLastPacket()) if (buf.size() >= targetSize || packet->IsLastPacket())
{ {

Loading…
Cancel
Save

Powered by TurnKey Linux.