]> granicus.if.org Git - handbrake/commitdiff
Remove tx3g -1 bias for bold and underline, was part of testing, thanks to Rodeo.
authoreddyg <eddyg.hb@myreflection.org>
Mon, 28 Sep 2009 23:14:34 +0000 (23:14 +0000)
committereddyg <eddyg.hb@myreflection.org>
Mon, 28 Sep 2009 23:14:34 +0000 (23:14 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2848 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmp4.c

index 7ab95bdcb765e68e2f39a9a7741adb5f6ea136f2..0ee3debc184331bf03402c0d87c3b597d49d1296 100644 (file)
@@ -698,7 +698,7 @@ static void hb_muxmp4_process_subtitle_style( uint8_t *input,
                     if (*(reader+3) == '>') {
                         if (stylestack && stylestack->style == BOLD) {
                             uint8_t style_record[12];
-                            stylestack->stop = writer - output - utf8_count - 1;
+                            stylestack->stop = writer - output - utf8_count;
                             hb_makestyleatom(stylestack, style_record);
 
                             memcpy(style + 10 + (12 * stylecount), style_record, 12);
@@ -719,7 +719,7 @@ static void hb_muxmp4_process_subtitle_style( uint8_t *input,
                     if (*(reader+3) == '>') {
                         if (stylestack && stylestack->style == UNDERLINE) {
                             uint8_t style_record[12];
-                            stylestack->stop = writer - output - utf8_count - 1;
+                            stylestack->stop = writer - output - utf8_count;
                             hb_makestyleatom(stylestack, style_record);
 
                             memcpy(style + 10 + (12 * stylecount), style_record, 12);