Open jaimecasero opened 8 years ago
https://github.com/RestComm/mediaserver/blob/master/io/rtp/src/main/java/org/mobicents/media/server/impl/rtp/JitterBuffer.java#L143
this code is using Java ">>" which use sign bit for filling. The RFC may be refering to normal shift where "0" is used for filling. In that case java code must use ">>>"
http://tools.ietf.org/html/rfc3550#appendix-A.8
Sample C code implementing same logic https://github.com/traviscross/mtr/blob/master/net.c#L847
https://github.com/RestComm/mediaserver/blob/master/io/rtp/src/main/java/org/mobicents/media/server/impl/rtp/JitterBuffer.java#L143
this code is using Java ">>" which use sign bit for filling. The RFC may be refering to normal shift where "0" is used for filling. In that case java code must use ">>>"