summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
diff options
context:
space:
mode:
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;