- fix compiler warning + make debugging easier

This commit is contained in:
Dmytro Bogovych 2022-10-30 18:36:06 +03:00
parent 1fbeae18c3
commit 83dd8f88b7
2 changed files with 5 additions and 2 deletions

View File

@ -612,7 +612,10 @@ bool AudioReceiver::getAudio(Audio::DataWindow& output, int options, int* rate)
// Handle here regular RTP packets
// Check if payload length is ok
int tail = mCodec->rtpLength() ? p->rtp()->GetPayloadLength() % mCodec->rtpLength() : 0;
size_t payload_length = p->rtp()->GetPayloadLength();
size_t rtp_frame_length = mCodec->rtpLength();
int tail = rtp_frame_length ? payload_length % rtp_frame_length : 0;
if (!tail)
{

View File

@ -427,7 +427,7 @@ std::string NetworkAddress::ip() const
{
assert(mInitialized == true);
char resultbuf[160], ip6[160]; resultbuf[0] = 0;
char resultbuf[159], ip6[161]; resultbuf[0] = 0;
#ifdef TARGET_WIN
DWORD resultsize = sizeof(resultbuf);