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:
Thomas Goyne 2014-02-14 18:56:38 -08:00
parent 2c4eaa8d45
commit 261ceaf969
1 changed files with 1 additions and 1 deletions

View File

@ -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.";
}