Skip to content

Commit 06f66ac

Browse files
authored
Merge pull request Dash-Industry-Forum#2831 from epiclabsDASH/fix_2821
Limit time threshold for segment request calculation
2 parents 96898ae + 73795c0 commit 06f66ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streaming/models/FragmentModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function FragmentModel(config) {
150150
}
151151

152152
function getRequestThreshold(req) {
153-
return isNaN(req.duration) ? 0.25 : req.duration / 8;
153+
return isNaN(req.duration) ? 0.25 : Math.min(req.duration / 8, 0.5);
154154
}
155155

156156
function removeExecutedRequestsBeforeTime(time) {

0 commit comments

Comments
 (0)