rtpjitterbuffer: Limit size to 2^15 packets
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 11 Jan 2019 22:53:43 +0000 (17:53 -0500)
committerOlivier Crête <olivier.crete@ocrete.ca>
Mon, 11 Feb 2019 23:41:14 +0000 (23:41 +0000)
commitbf00ee46de8507af084cbf0f664fa5b6634164c9
tree622e74b35085b6b734b8b12cf3b2365381a5759b
parent086bad464387d61e31884ee6628846628118fbcb
rtpjitterbuffer: Limit size to 2^15 packets

If it goes over 2^15 packets, it will think it has rolled over
and start dropping all packets. So make sure the seqnum distance is not too big.

But let's not limit it to a number that is too small to avoid emptying it
needlessly if there is a spurious huge sequence number, let's allow at
least 10k packets in any case.
gst/rtpmanager/gstrtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.h