summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
diff options
context:
space:
mode:
authorRobin Lindén <dev@robinlinden.eu>2018-03-05 22:51:06 +0100
committeriphydf <iphydf@users.noreply.github.com>2018-03-09 17:06:41 +0000
commit5da8c8d5de75f1adc85faa26be9f627e3194bf14 (patch)
tree8118b3731c54ac1fd54359d13afc14b0e755c8ca /toxav/rtp.c
parentf5c24e577cdac6476afbda7bfc6ed46f916f3576 (diff)
Don't throw away rtp packets from old Toxcore
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r--toxav/rtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c
index 575b1502..72b59354 100644
--- a/toxav/rtp.c
+++ b/toxav/rtp.c
@@ -467,7 +467,8 @@ static int handle_rtp_packet(Messenger *m, uint32_t friendnumber, const uint8_t
467 return -1; 467 return -1;
468 } 468 }
469 469
470 if (header.offset_full >= header.data_length_full) { 470 if (header.offset_full >= header.data_length_full
471 && (header.offset_full != 0 || header.data_length_full != 0)) {
471 LOGGER_ERROR(m->log, "Invalid video packet: frame offset (%u) >= full frame length (%u)", 472 LOGGER_ERROR(m->log, "Invalid video packet: frame offset (%u) >= full frame length (%u)",
472 (unsigned)header.offset_full, (unsigned)header.data_length_full); 473 (unsigned)header.offset_full, (unsigned)header.data_length_full);
473 return -1; 474 return -1;