Patent ID: 8483243

Claim:
A method of compensating for jitter in a packet stream, the method comprising: performing a first method in response to receiving each packet in the packet stream: receiving a given packet in the packet stream; adding a frame in the given packet to a jitter buffer; calculating, by a computing device, a playout delay of the given packet, the playout delay of the given packet being an amount of time that the frame in the given packet is expected to remain in the jitter buffer and a sample buffer before being played out, the computing device calculating the playout delay of the given packet prior to the frame being removed from the jitter buffer; and adjusting, by the computing device, an average playout delay to more closely match the playout delay of the given packet, wherein the average playout delay is a running average of the playout delay for each packet in the packet stream; and performing a second method, the second method comprising: decoding a first packet in the jitter buffer after determining that there are not enough samples in the sample buffer; placing decoded frames of the first packet into the sample buffer after decoding the first packet; and adjusting a length of a signal represented by the samples in the sample buffer based on the adjusted average playout delay.