mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #818 from maksqwe/rtp_header_fix
fix RTPHeader filling by zeros underflow
This commit is contained in:
commit
a116673554
|
@ -262,7 +262,7 @@ RTPHeader *extract_header ( const uint8_t *payload, int length )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
memset(_retu->csrc, 0, 16);
|
||||
memset(_retu->csrc, 0, 16 * sizeof (uint32_t));
|
||||
|
||||
_retu->marker_payloadt = *_it;
|
||||
++_it;
|
||||
|
@ -912,4 +912,4 @@ int rtp_terminate_session ( RTPSession *session, Messenger *messenger )
|
|||
free ( session );
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user