X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fdeccc608sub.c;h=2f137494305fc8dad4fe929f2d556a86c13a2790;hb=033e32de9c380f54c7d1362a3979da205ebc3a29;hp=87899b4c4ff373d561ba2c342f4dfc6de189089d;hpb=a044be0d30678878a5211cf71e8341a645d50c1c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c index 87899b4c..2f137494 100644 --- a/libhb/deccc608sub.c +++ b/libhb/deccc608sub.c @@ -16,7 +16,7 @@ static int nofontcolor = 0; static enum encoding_type encoding = ENC_UTF_8; static int cc_channel = 1; static enum output_format write_format = OF_SRT; -static int sentence_cap = 1; +static int sentence_cap = 0; static int subs_delay = 0; static LLONG screens_to_process = -1; static int processed_enough = 0; @@ -681,7 +681,7 @@ int get_char_in_utf_8 (unsigned char *buffer, unsigned char c) // Returns number *buffer=0x27; return 1; case 0x97: // inverted exclamation mark - *buffer=0xc1; + *buffer=0xc2; *(buffer+1)=0xa1; return 2; case 0x98: // asterisk @@ -1637,7 +1637,8 @@ int write_cc_buffer_as_srt (struct eia608_screen *data, struct s_write *wb) } else { if (line == 2) { wb->enc_buffer_used += encode_line (wb->enc_buffer+wb->enc_buffer_used, - (unsigned char *) " "); + (unsigned char *) "\n"); + line = 3; } else { wb->enc_buffer_used += encode_line (wb->enc_buffer+wb->enc_buffer_used, (unsigned char *) " ");