Skip to content

Commit

Permalink
Fix regression in checkPortalSize
Browse files Browse the repository at this point in the history
  • Loading branch information
jeoliva committed Jun 19, 2019
1 parent 6e18850 commit 0086e98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/streaming/controllers/AbrController.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,10 @@ function AbrController() {
) {
newIdx = newIdx - 1;
}

if (representation.length - 2 >= newIdx && representation[newIdx].width === representation[newIdx + 1].width) {
newIdx = Math.min(idx, newIdx + 1);
}
}

return newIdx;
Expand Down

0 comments on commit 0086e98

Please sign in to comment.