mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
rework result factory
This commit is contained in:
parent
c1ae3ec2ce
commit
227dd0a42d
83 changed files with 715 additions and 811 deletions
|
|
@ -1218,6 +1218,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
public string EscapeSubtitleFilterPath(string path)
|
||||
{
|
||||
// https://ffmpeg.org/ffmpeg-filters.html#Notes-on-filtergraph-escaping
|
||||
// We need to double escape
|
||||
|
||||
var escapeChars = new[] {':', '\'', ','};
|
||||
|
||||
return path.Replace('\\', '/').Replace(":/", "\\:/").Replace("'", "'\\\\\\''");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue