From 30e3d18c6ec50572365baaaaa3542769e82e763a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 30 Sep 2023 15:21:57 +0200 Subject: move some files around for new remuxer + small changes --- common/src/stream.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'common/src/stream.rs') diff --git a/common/src/stream.rs b/common/src/stream.rs index ca09999..af19062 100644 --- a/common/src/stream.rs +++ b/common/src/stream.rs @@ -1,3 +1,8 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ #[cfg(feature = "rocket")] use rocket::{FromForm, FromFormField, UriDisplayQuery}; use serde::{Deserialize, Serialize}; @@ -10,6 +15,7 @@ pub struct StreamSpec { pub webm: Option, pub abr: Option, pub vbr: Option, + pub width: Option, pub index: Option, } @@ -31,6 +37,7 @@ impl Default for StreamSpec { tracks: Vec::new(), format: StreamFormat::Matroska, webm: Some(true), + width: None, abr: None, vbr: None, index: None, @@ -66,7 +73,10 @@ impl StreamSpec { writeln!(u, "&index={index}").unwrap(); } if let Some(webm) = self.webm { - writeln!(u, "&webmm={webm}").unwrap(); + writeln!(u, "&webm={webm}").unwrap(); + } + if let Some(width) = self.width { + writeln!(u, "&width={width}").unwrap(); } u } -- cgit v1.2.3-70-g09d2