summaryrefslogtreecommitdiffstats
path: root/media/cast
diff options
context:
space:
mode:
authorhguihot@chromium.org <hguihot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 17:14:45 +0000
committerhguihot@chromium.org <hguihot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-13 17:14:45 +0000
commit066f68a6239c285d56a313f346d60c6262f5debd (patch)
tree88d2e0fdb491cb5de2c9c7550c4d551cf79951ca /media/cast
parent06fb8b10dbf5a3f59de4c54bb5cebcb4e99421f0 (diff)
downloadchromium_src-066f68a6239c285d56a313f346d60c6262f5debd.zip
chromium_src-066f68a6239c285d56a313f346d60c6262f5debd.tar.gz
chromium_src-066f68a6239c285d56a313f346d60c6262f5debd.tar.bz2
Increase possible number of frames on the wire.
Previous thresholds were defined assuming low values for |rtp_max_delay_ms| (in audio and video receiver configurations). Review URL: https://codereview.chromium.org/196513003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast')
-rw-r--r--media/cast/transport/cast_transport_defines.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/media/cast/transport/cast_transport_defines.h b/media/cast/transport/cast_transport_defines.h
index 532c14c..252883d 100644
--- a/media/cast/transport/cast_transport_defines.h
+++ b/media/cast/transport/cast_transport_defines.h
@@ -112,19 +112,19 @@ class FrameIdWrapHelper {
over_the_wire_frame_id < kHighRangeThreshold) {
range_ = kMiddleRange;
}
- if (over_the_wire_frame_id > kHighRangeThreshold) {
+ if (over_the_wire_frame_id >= kHighRangeThreshold) {
// Wrap count was incremented in High->Low transition, but this frame
// is 'old', actually from before the wrap count got incremented.
--wrap_count;
}
break;
case kMiddleRange:
- if (over_the_wire_frame_id > kHighRangeThreshold) {
+ if (over_the_wire_frame_id >= kHighRangeThreshold) {
range_ = kHighRange;
}
break;
case kHighRange:
- if (over_the_wire_frame_id < kLowRangeThreshold) {
+ if (over_the_wire_frame_id <= kLowRangeThreshold) {
// Wrap-around detected.
range_ = kLowRange;
++frame_id_wrap_count_;
@@ -140,8 +140,8 @@ class FrameIdWrapHelper {
private:
enum Range { kLowRange, kMiddleRange, kHighRange, };
- static const uint8 kLowRangeThreshold = 0x0f;
- static const uint8 kHighRangeThreshold = 0xf0;
+ static const uint8 kLowRangeThreshold = 63;
+ static const uint8 kHighRangeThreshold = 192;
static const uint32 kStartFrameId = GG_UINT32_C(0xffffffff);
bool first_;