OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Some DVB programs have a lot of streams (20 for BBC HD) so up max from 16 to 32
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
deccc608sub.c
diff --git
a/libhb/deccc608sub.c
b/libhb/deccc608sub.c
index
5cfe238
..
48bb1f7
100644
(file)
--- 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 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;
static int subs_delay = 0;
static LLONG screens_to_process = -1;
static int processed_enough = 0;
@@
-535,6
+535,8
@@
void get_char_in_unicode (unsigned char *buffer, unsigned char c)
int get_char_in_utf_8 (unsigned char *buffer, unsigned char c) // Returns number of bytes used
{
int get_char_in_utf_8 (unsigned char *buffer, unsigned char c) // Returns number of bytes used
{
+ if (c==0x00)
+ return 0;
if (c<0x80) // Regular line-21 character set, mostly ASCII except these exceptions
{
switch (c)
if (c<0x80) // Regular line-21 character set, mostly ASCII except these exceptions
{
switch (c)
@@
-1646,7
+1648,7
@@
int write_cc_buffer_as_srt (struct eia608_screen *data, struct s_write *wb)
}
if (wb->enc_buffer_used)
{
}
if (wb->enc_buffer_used)
{
- hb_buffer_t *buffer = hb_buffer_init( wb->enc_buffer_used +
2
);
+ hb_buffer_t *buffer = hb_buffer_init( wb->enc_buffer_used +
1
);
buffer->start = ms_start;
buffer->stop = ms_end;
memcpy( buffer->data, wb->enc_buffer, wb->enc_buffer_used + 1 );
buffer->start = ms_start;
buffer->stop = ms_end;
memcpy( buffer->data, wb->enc_buffer, wb->enc_buffer_used + 1 );