diff options
author | irungentoo <irungentoo@tox.im> | 2014-03-27 19:38:12 -0400 |
---|---|---|
committer | irungentoo <irungentoo@tox.im> | 2014-03-27 19:38:12 -0400 |
commit | a11667355491b6a0b18111e0c6ef16f816521214 (patch) | |
tree | e59bdc812c4c895b7764397087b4d31907d05453 | |
parent | 249d2d9eb7abda4542a09bd1bbc44a64af4d7ddc (diff) | |
parent | 5c49f7d2b9371ac98bd38016ea61f36f4b93b20e (diff) |
Merge pull request #818 from maksqwe/rtp_header_fix
fix RTPHeader filling by zeros underflow
-rwxr-xr-x | toxav/rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index ea70ca74..42c9480c 100755 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -262,7 +262,7 @@ RTPHeader *extract_header ( const uint8_t *payload, int length ) | |||
262 | return NULL; | 262 | return NULL; |
263 | } | 263 | } |
264 | 264 | ||
265 | memset(_retu->csrc, 0, 16); | 265 | memset(_retu->csrc, 0, 16 * sizeof (uint32_t)); |
266 | 266 | ||
267 | _retu->marker_payloadt = *_it; | 267 | _retu->marker_payloadt = *_it; |
268 | ++_it; | 268 | ++_it; |
@@ -912,4 +912,4 @@ int rtp_terminate_session ( RTPSession *session, Messenger *messenger ) | |||
912 | free ( session ); | 912 | free ( session ); |
913 | 913 | ||
914 | return 0; | 914 | return 0; |
915 | } \ No newline at end of file | 915 | } |