aboutsummaryrefslogtreecommitdiff
path: root/remuxer/src
diff options
context:
space:
mode:
Diffstat (limited to 'remuxer/src')
-rw-r--r--remuxer/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/remuxer/src/lib.rs b/remuxer/src/lib.rs
index 21b41bb..5536a12 100644
--- a/remuxer/src/lib.rs
+++ b/remuxer/src/lib.rs
@@ -27,6 +27,7 @@ impl RemuxerContext {
path_base: PathBuf,
iteminfo: ItemInfo,
selection: Vec<u64>,
+ webm: bool,
) -> anyhow::Result<()> {
let source_path = path_base.join(&iteminfo.path);
info!("remuxing {source_path:?} to have tracks {selection:?}");
@@ -49,8 +50,11 @@ impl RemuxerContext {
MatroskaTag::EbmlReadVersion(1),
MatroskaTag::EbmlMaxIdLength(4),
MatroskaTag::EbmlMaxSizeLength(8),
- // MatroskaTag::DocType("matroska".to_string()),
- MatroskaTag::DocType("webm".to_string()),
+ MatroskaTag::DocType(if webm {
+ "webm".to_string()
+ } else {
+ "matroska".to_string()
+ }),
MatroskaTag::DocTypeVersion(4),
MatroskaTag::DocTypeReadVersion(2),
])))?;