forked from kenzuya/unshackle
fix(core): decode subprocess output as UTF-8 with replacement
Strict UTF-8 decode of external tool output (ffmpeg/shaka/mp4decrypt) crashed reader threads on non-English Windows (cp950/Big5).
This commit is contained in:
@@ -456,6 +456,8 @@ class Video(Track):
|
||||
],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
)
|
||||
vals = dict(line.split("=", 1) for line in probe.stdout.splitlines() if "=" in line)
|
||||
current = (vals.get("color_primaries"), vals.get("color_transfer"), vals.get("color_space"))
|
||||
|
||||
Reference in New Issue
Block a user