mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 10:08:03 +00:00
Remove conditional compilation for ffmpeg concat
The logic should actually be the same on all platforms, Linux still needs backslashes escaped with another backslash.
This commit is contained in:
parent
dae397117c
commit
57cbb29306
1 changed files with 7 additions and 16 deletions
|
@ -252,22 +252,13 @@ pub fn ffmpeg(temp: &Path, output: &Path) -> anyhow::Result<()> {
|
|||
let mut contents = String::with_capacity(24 * files.len());
|
||||
|
||||
for i in files {
|
||||
if cfg!(windows) {
|
||||
contents.push_str(&format!(
|
||||
"file {}\n",
|
||||
format!("{}", i.path().display())
|
||||
.replace(r"\", r"\\")
|
||||
.replace(" ", r"\ ")
|
||||
.replace("'", r"\'")
|
||||
));
|
||||
} else {
|
||||
contents.push_str(&format!(
|
||||
"file {}\n",
|
||||
format!("{}", i.path().display())
|
||||
.replace(" ", r"\ ")
|
||||
.replace("'", r"\'")
|
||||
));
|
||||
}
|
||||
contents.push_str(&format!(
|
||||
"file {}\n",
|
||||
format!("{}", i.path().display())
|
||||
.replace(r"\", r"\\")
|
||||
.replace(" ", r"\ ")
|
||||
.replace("'", r"\'")
|
||||
));
|
||||
}
|
||||
|
||||
let mut file = File::create(concat_file)?;
|
||||
|
|
Loading…
Reference in a new issue