mirror of https://github.com/odrling/Aegisub
Pass nullptr for the codepage for ass_read_memory
Passing a codepage makes libass convert to UTF-8 even if it's already UTF-8.
This commit is contained in:
parent
2c4eaa8d45
commit
261ceaf969
|
@ -127,7 +127,7 @@ void LibassSubtitlesProvider::LoadSubtitles(AssFile *subs) {
|
|||
}
|
||||
|
||||
if (ass_track) ass_free_track(ass_track);
|
||||
ass_track = ass_read_memory(library, &data[0], data.size(),(char *)"UTF-8");
|
||||
ass_track = ass_read_memory(library, &data[0], data.size(), nullptr);
|
||||
if (!ass_track) throw "libass failed to load subtitles.";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue