Skip to content

Commit

Permalink
Fix enconding presets (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
iparaskev authored Nov 26, 2024
1 parent 979d0c5 commit 21bdee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion livekit/src/room/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub fn compute_appropriate_encoding(

for preset in presets {
encoding = preset.encoding.clone();
if preset.width >= size {
if preset.width > size {
break;
}
}
Expand Down Expand Up @@ -257,6 +257,7 @@ pub fn into_rtp_encodings(
})
}

encodings.reverse();
encodings
}

Expand Down

0 comments on commit 21bdee2

Please sign in to comment.