Skip to content

Commit 3800585

Browse files
baysonfoxshssoichiro
authored andcommitted
fix(av1an-core): fix path-handling in vapoursynth script
- Use `Display` trait instead of `Debug` for path formatting to preserve Unicode characters - Wrap source path with r"" raw string literal in Python template - Platform-safe escaping for Windows backslash characters - Improve handling of special characters (\n, \t, etc.) in file paths
1 parent f88cc27 commit 3800585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

av1an-core/src/vapoursynth.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ pub fn create_vs_file(
247247
format!(
248248
"from vapoursynth import core\n\
249249
core.max_cache_size=1024\n\
250-
core.{}({:?}, cachefile={:?}).set_output()",
250+
core.{}(r\"{}\", cachefile={:?}).set_output()",
251251
match chunk_method {
252252
ChunkMethod::FFMS2 => "ffms2.Source",
253253
ChunkMethod::LSMASH => "lsmas.LWLibavSource",
254254
_ => unreachable!(),
255255
},
256-
source,
256+
source.display(),
257257
cache_file
258258
)
259259
.as_bytes(),

0 commit comments

Comments
 (0)