Skip to content

Commit

Permalink
Change to use Max instead of a magic number.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPKribs committed Mar 3, 2025
1 parent 060dd7c commit 0168970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ extension BaseItemDto {
let testBitrate = testSizeBits / testDuration

/// Exceeding 500 mbps will produce an invalid URL
return min(Int(testBitrate), 500_000_000)
return min(Int(testBitrate), PlaybackBitrate.max.rawValue)
}
}

0 comments on commit 0168970

Please sign in to comment.