Patent ID: 8676573

Claim:
A method of decoding encoded portions of a data stream at a decoding apparatus, each portion comprising a plurality of samples, the method comprising: at the decoding apparatus, receiving encoded portions of the data stream; storing the encoded portions of the data stream; decoding the encoded portions of the data stream to form decoded portions; storing the decoded portions; identifying that a portion of the data stream is degraded; and following identifying that a portion of the data stream is degraded: generating a decoded replacement portion for the degraded portion of the data stream using the stored decoded portions; and updating a state of a decoder using the encoded portions that were previously stored by: estimating a pitch period of the degraded portion; selecting, separate from the generation of the decoded replacement portion, a group of successive samples of the stored encoded portions of the data stream, wherein the group of successive samples offset from the degraded portion in the data stream by a multiple of the estimated pitch period, and wherein the selected samples are separate from the decoded replacement portion; and decoding the selected samples at the decoder, wherein the decoded selected samples are subsequently discarded.