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:
Rodrigo Braz Monteiro 2007-04-04 04:22:05 +00:00
parent f15c03b1cc
commit 217c617a78

View file

@ -114,7 +114,7 @@ void LibassSubtitlesProvider::LoadSubtitles(AssFile *subs) {
// Load file
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.");
}