OSDN Git Service

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

libhb/muxmp4.c

index 7ab95bd..0ee3deb 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);