mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
修正回环时计算前后包距错误 (#3089)
This commit is contained in:
parent
d21bdc35c9
commit
44c82752b3
@ -102,7 +102,7 @@ private:
|
|||||||
ret = next_seq - seq;
|
ret = next_seq - seq;
|
||||||
}
|
}
|
||||||
if (ret > SEQ_MAX >> 1) {
|
if (ret > SEQ_MAX >> 1) {
|
||||||
return SEQ_MAX - ret;
|
return SEQ_MAX - ret + 1;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user