forked from mia/Aegisub
Create well-formed ASS when reading SRT-in-Matroska
The conversion to ASS was creating invalid lines which could not be parsed, resulting in the worker thread crashing. Closes #1554.
This commit is contained in:
parent
6b0ea92f8e
commit
ed43623743
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ static void read_subtitles(agi::ProgressSink *ps, MatroskaFile *file, MkvStdIO *
|
|||
}
|
||||
// Process SRT
|
||||
else {
|
||||
blockString = wxString::Format("Dialogue: 0,%s,%s,%s", subStart.GetAssFormated(), subEnd.GetAssFormated(), blockString);
|
||||
blockString = wxString::Format("Dialogue: 0,%s,%s,Default,,0,0,0,,%s", subStart.GetAssFormated(), subEnd.GetAssFormated(), blockString);
|
||||
blockString.Replace("\r\n","\\N");
|
||||
blockString.Replace("\r","\\N");
|
||||
blockString.Replace("\n","\\N");
|
||||
|
|
Loading…
Reference in a new issue