From 217c617a788a5319e588c0771c29021470c99da6 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 4 Apr 2007 04:22:05 +0000 Subject: [PATCH] Fixed parsing of [Script Info] for libass, makes resolution work properly, and, apparently, all of libass behave correctly. Originally committed to SVN as r1002. --- aegisub/subtitles_provider_libass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/subtitles_provider_libass.cpp b/aegisub/subtitles_provider_libass.cpp index f60e25040..679a98fe4 100644 --- a/aegisub/subtitles_provider_libass.cpp +++ b/aegisub/subtitles_provider_libass.cpp @@ -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."); }