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/rendersub.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/rendersub.c')
-rw-r--r-- | libhb/rendersub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 74b1428d0..4ecb726d8 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -785,9 +785,9 @@ static int textsub_work(hb_filter_object_t * filter, process_sub(pv, pv->current_sub); hb_buffer_close(&pv->current_sub); } - if (sub->s.start == sub->s.stop) + if (sub->s.flags & HB_BUF_FLAG_EOS) { - // Zero duration sub used to "clear" previous sub that had + // marker used to "clear" previous sub that had // an unknown duration hb_buffer_close(&sub); } |