aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'common/src')
-rw-r--r--common/src/stream.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/src/stream.rs b/common/src/stream.rs
index e6fe767..1fb3761 100644
--- a/common/src/stream.rs
+++ b/common/src/stream.rs
@@ -13,8 +13,7 @@ pub struct StreamSpec {
pub tracks: Vec<usize>,
pub format: StreamFormat,
pub webm: Option<bool>,
- pub abr: Option<usize>,
- pub vbr: Option<usize>,
+ pub bitrate: Option<usize>,
pub width: Option<usize>,
pub index: Option<usize>,
}
@@ -39,8 +38,7 @@ impl Default for StreamSpec {
format: StreamFormat::Matroska,
webm: Some(true),
width: None,
- abr: None,
- vbr: None,
+ bitrate: None,
index: None,
}
}
@@ -64,11 +62,8 @@ impl StreamSpec {
)
.unwrap();
}
- if let Some(abr) = self.abr {
- write!(u, "&abr={abr}").unwrap();
- }
- if let Some(vbr) = self.vbr {
- write!(u, "&vbr={vbr}").unwrap();
+ if let Some(bitrate) = self.bitrate {
+ write!(u, "&bitrate={bitrate}").unwrap();
}
if let Some(index) = self.index {
write!(u, "&index={index}").unwrap();