mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Don't throw away rtp packets from old Toxcore
This commit is contained in:
parent
f5c24e577c
commit
5da8c8d5de
|
@ -467,7 +467,8 @@ static int handle_rtp_packet(Messenger *m, uint32_t friendnumber, const uint8_t
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (header.offset_full >= header.data_length_full) {
|
||||
if (header.offset_full >= header.data_length_full
|
||||
&& (header.offset_full != 0 || header.data_length_full != 0)) {
|
||||
LOGGER_ERROR(m->log, "Invalid video packet: frame offset (%u) >= full frame length (%u)",
|
||||
(unsigned)header.offset_full, (unsigned)header.data_length_full);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user