- fix compiler warning + make debugging easier
This commit is contained in:
parent
1fbeae18c3
commit
83dd8f88b7
|
|
@ -612,7 +612,10 @@ bool AudioReceiver::getAudio(Audio::DataWindow& output, int options, int* rate)
|
||||||
|
|
||||||
// Handle here regular RTP packets
|
// Handle here regular RTP packets
|
||||||
// Check if payload length is ok
|
// 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)
|
if (!tail)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@ std::string NetworkAddress::ip() const
|
||||||
{
|
{
|
||||||
assert(mInitialized == true);
|
assert(mInitialized == true);
|
||||||
|
|
||||||
char resultbuf[160], ip6[160]; resultbuf[0] = 0;
|
char resultbuf[159], ip6[161]; resultbuf[0] = 0;
|
||||||
|
|
||||||
#ifdef TARGET_WIN
|
#ifdef TARGET_WIN
|
||||||
DWORD resultsize = sizeof(resultbuf);
|
DWORD resultsize = sizeof(resultbuf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue