mirror of https://github.com/odrling/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
|
@ -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 New Issue