Comment #5 on issue 1889 by amit.bhayani: JitterBuffer throws
ArrayIndexOutOfBoundsException when the Sequence number roll overs
http://code.google.com/p/mobicents/issues/detail?id=1889
- code will never go into last "else"
Consider continuous RTP (not roll-over case) and couple of packets lost in
network
So seq number is 101, 102 and 103,104 lost and 105 received after this 103
is received. In this case else block will be executed.
why value in if is 65434
The max Seq is 65535 and rollovers to 1. However there is possibility that
packets with seq number 0,1 are lost. And the queue size is 100. So safest
bet is 65534 (100 less)