Properly escape paths in concat file for BDMV (#12296)
This commit is contained in:
parent
f7a90b6383
commit
4afa6db108
|
@ -1216,7 +1216,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
var duration = TimeSpan.FromTicks(mediaInfoResult.RunTimeTicks.Value).TotalSeconds;
|
var duration = TimeSpan.FromTicks(mediaInfoResult.RunTimeTicks.Value).TotalSeconds;
|
||||||
|
|
||||||
// Add file path stanza to concat configuration
|
// Add file path stanza to concat configuration
|
||||||
sw.WriteLine("file '{0}'", path);
|
sw.WriteLine("file '{0}'", path.Replace("'", @"'\''", StringComparison.Ordinal));
|
||||||
|
|
||||||
// Add duration stanza to concat configuration
|
// Add duration stanza to concat configuration
|
||||||
sw.WriteLine("duration {0}", duration);
|
sw.WriteLine("duration {0}", duration);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user