diff options
author | John Stebbins <[email protected]> | 2016-05-17 14:05:23 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-17 14:05:23 -0600 |
commit | b442e61f9b9d2462dc0b3b375054701ac218d17d (patch) | |
tree | 706c3f1dbdba6ede41cd66d4502426c8cfd0973c /libhb/deccc608sub.c | |
parent | fd311280dba1530d3666c4a9bd4e98380833565b (diff) |
sync: fix merging of multiple SSA to tx3g
When more than 2 subtitles overlapped in time, they were not merged
properly and could result in cases where the subtitle time went
backwards
Diffstat (limited to 'libhb/deccc608sub.c')
-rw-r--r-- | libhb/deccc608sub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c index 344c17a26..8ac6642da 100644 --- a/libhb/deccc608sub.c +++ b/libhb/deccc608sub.c @@ -953,11 +953,11 @@ static int write_cc_buffer_as_ssa(struct eia608_screen *data, } else if (wb->clear_sub_needed) { - hb_buffer_t *buffer = hb_buffer_init(1); + hb_buffer_t *buffer = hb_buffer_init(0); buffer->s.frametype = HB_FRAME_SUBTITLE; - buffer->s.start = ms_start; - buffer->s.stop = ms_start; - buffer->data[0] = 0; + buffer->s.flags = HB_BUF_FLAG_EOS; + buffer->s.start = ms_start; + buffer->s.stop = ms_start; hb_buffer_list_append(&wb->list, buffer); wb->clear_sub_needed = 0; } |