aboutsummaryrefslogtreecommitdiff
path: root/stream/src/stream_info.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-21 10:15:46 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-21 10:15:46 +0200
commit9b9f5abedb69c4ecb6cae7ecc27f53ee7e9fe5d4 (patch)
treee42a5cf3ceec261fb6e2918c0fed0f0af37c485a /stream/src/stream_info.rs
parent82fc75dcea8f26f23eec0c6e88244e41b401a826 (diff)
downloadjellything-9b9f5abedb69c4ecb6cae7ecc27f53ee7e9fe5d4.tar
jellything-9b9f5abedb69c4ecb6cae7ecc27f53ee7e9fe5d4.tar.bz2
jellything-9b9f5abedb69c4ecb6cae7ecc27f53ee7e9fe5d4.tar.zst
fix bitrate min max bug
Diffstat (limited to 'stream/src/stream_info.rs')
-rw-r--r--stream/src/stream_info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/src/stream_info.rs b/stream/src/stream_info.rs
index 43d9289..3a33b46 100644
--- a/stream/src/stream_info.rs
+++ b/stream/src/stream_info.rs
@@ -128,7 +128,7 @@ fn stream_formats(t: &TrackEntry, remux_bitrate: f64) -> Vec<StreamFormatInfo> {
if enable {
formats.push(StreamFormatInfo {
codec: cid.to_string(),
- bitrate: remux_bitrate.max(br),
+ bitrate: remux_bitrate.min(br),
remux: false,
containers: containers_by_codec(cid),
width: Some(w),