Fixed parsing of [Script Info] for libass, makes resolution work properly, and, apparently, all of libass behave correctly.
Originally committed to SVN as r1002.
This commit is contained in:
parent
f15c03b1cc
commit
217c617a78
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ void LibassSubtitlesProvider::LoadSubtitles(AssFile *subs) {
|
||||||
|
|
||||||
// Load file
|
// Load file
|
||||||
if (ass_track) ass_free_track(ass_track);
|
if (ass_track) ass_free_track(ass_track);
|
||||||
ass_track = ass_read_memory(ass_library, &data[3], data.size()-3,"UTF-8"); // Starting at 3 to avoid BOM
|
ass_track = ass_read_memory(ass_library, &data[0], data.size(),"UTF-8");
|
||||||
if (!ass_track) throw _T("libass failed to load subtitles.");
|
if (!ass_track) throw _T("libass failed to load subtitles.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue