Accounting for wrap-around of timestamps.

BUG=
R=henrik.lundin@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2340006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4932 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
turaj@webrtc.org 2013-10-06 02:21:24 +00:00
parent 20078e2f9b
commit f31639612d

View File

@ -70,8 +70,7 @@ Operations DecisionLogicNormal::GetDecisionSpecialized(
// Check if the required packet is available.
if (target_timestamp == available_timestamp) {
return ExpectedPacketAvailable(prev_mode, play_dtmf);
} else if (available_timestamp > target_timestamp) {
// TODO(hlundin): Consider wrap-around too?
} else if (IsNewerTimestamp(available_timestamp, target_timestamp)) {
return FuturePacketAvailable(sync_buffer, expand, decoder_frame_length,
prev_mode, target_timestamp,
available_timestamp, play_dtmf);