Skip to content

Commit

Permalink
Fix selection codec contstraint
Browse files Browse the repository at this point in the history
Fixes regression in dev introduced in #6483 where variant with alternate codec can be selected
  • Loading branch information
robwalch committed Jun 12, 2024
1 parent 85d37f2 commit 76e5a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ class AbrController extends Logger implements AbrComponentAPI {
(levelInfo.supportedResult &&
!levelInfo.supportedResult.decodingInfoResults?.[0].smooth)
) {
if (firstSelection && i !== minStartIndex) {
if (!firstSelection || i !== minStartIndex) {
levelsSkipped.push(i);
continue;
}
Expand Down

0 comments on commit 76e5a49

Please sign in to comment.