Patent ID: 7940805

Claim:
A receiving device comprising: a receiving unit that receives a packet stream where predetermined units each having at least a time stamp and a TS (Transport Stream) packet are continuous; an oscillator that can control an oscillation frequency; a measuring unit that divides a clock supplied by the oscillator and performs a measuring operation; an acquiring unit that reads the newest time stamp read from the packet stream received by the receiving unit and the newest measurement value measured by the measuring unit with a predetermined period, from a point of time when the packet stream starts to be received; a calculating unit that calculates an accumulation value of the time stamps acquired by the acquiring unit and an accumulation value of the measurement values acquired by the acquiring unit; a comparing unit that compares an absolute value of a difference between the accumulation value of the time stamps calculated by the calculating unit and the accumulation value of the measurement values calculated by the calculating unit, and a value corresponding to a network jitter; a frequency control unit that controls the oscillation frequency of the oscillator, when the absolute value of the difference between the accumulation value of the time stamps and the accumulation value of the measurement values is larger than the value corresponding to the network jitter as the comparison result by the comparing unit; and a processing unit compare the newest time stamp read by the acquiring unit with an immediately previous time stamp read by the acquiring unit to (i) determine if an arrival order of the packet stream is normal or abnormal such that if a comparison result thereof indicates that the newest time stamp is smaller than the immediately previous time stamp the arrival order of the packet stream is determined to be abnormal whereupon a correction process is executed, and if the comparison result indicates that the newest time stamp is not smaller than the immediately previous time stamp the arrival order of the packet stream is determined to be normal whereupon the correction process is skipped, and (ii) determine, when the arrival order is determined to be normal or after completion of the correction process, if the packet stream has been interrupted or not interrupted such that when the comparison result indicates that the newest time stamp is the same as the immediately previous time stamp the packet stream is determined to have been interrupted whereupon the frequency control unit does not control the oscillation frequency and when the comparison result indicates that the newest time stamp is not the same as the immediately previous time stamp the packet stream is determined to have not been interrupted whereupon the calculating unit calculates the accumulation value of the time stamps and the accumulation value of the measurement values and the comparing unit compares the absolute value of the difference and the value corresponding to the network jitter.