From 92f5921231a5b5c0103c553db552e25ccc94fbde Mon Sep 17 00:00:00 2001 From: nekno Date: Sun, 2 Jan 2022 06:52:50 -0600 Subject: [PATCH] Default output filename based on --discard option --- src/dovi/converter.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dovi/converter.rs b/src/dovi/converter.rs index 7b8fd6e..df3b2e5 100644 --- a/src/dovi/converter.rs +++ b/src/dovi/converter.rs @@ -39,7 +39,10 @@ impl Converter { let output = match output { Some(path) => path, - None => PathBuf::from("BL_EL.hevc"), + None => match options.discard_el { + true => PathBuf::from("BL_RPU.hevc"), + false => PathBuf::from("BL_EL_RPU.hevc"), + }, }; let demuxer = Converter::new(format, input, output);