diff options
author | irungentoo <irungentoo@gmail.com> | 2014-02-19 08:08:55 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-02-19 08:08:55 -0500 |
commit | 354a392d696763b95ff35747989ab8821bd12934 (patch) | |
tree | 5d18c5d5ac7af11b8d975aafabbca057ab23287c /toxav/rtp.c | |
parent | a3904932bf56e1326b3b90061011a5030e5ce27d (diff) |
Added better documentation to the api, move some defines, fixed a possible issue.
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r-- | toxav/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index 8f6f0be7..8eca46d4 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -517,7 +517,7 @@ int rtp_handle_packet ( void *object, IP_Port ip_port, uint8_t *data, uint32_t l | |||
517 | RTPSession *_session = object; | 517 | RTPSession *_session = object; |
518 | RTPMessage *_msg; | 518 | RTPMessage *_msg; |
519 | 519 | ||
520 | if ( !_session || length < 13 ) /* 12 is the minimum length for rtp + desc. byte */ | 520 | if ( !_session || length < 13 + crypto_secretbox_MACBYTES) /* 12 is the minimum length for rtp + desc. byte */ |
521 | return -1; | 521 | return -1; |
522 | 522 | ||
523 | uint8_t _plain[MAX_UDP_PACKET_SIZE]; | 523 | uint8_t _plain[MAX_UDP_PACKET_SIZE]; |