summaryrefslogtreecommitdiffstats
path: root/libhb/decpgssub.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-17 14:05:23 -0600
committerJohn Stebbins <[email protected]>2016-05-17 14:05:23 -0600
commitb442e61f9b9d2462dc0b3b375054701ac218d17d (patch)
tree706c3f1dbdba6ede41cd66d4502426c8cfd0973c /libhb/decpgssub.c
parentfd311280dba1530d3666c4a9bd4e98380833565b (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/decpgssub.c')
-rw-r--r--libhb/decpgssub.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c
index 9a8445a93..2ddd76f45 100644
--- a/libhb/decpgssub.c
+++ b/libhb/decpgssub.c
@@ -466,16 +466,18 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
}
else
{
- out = hb_buffer_init( 1 );
-
- out->s.frametype = HB_FRAME_SUBTITLE;
- out->s.id = in->s.id;
- out->s.start = pts;
- out->s.stop = pts;
- out->f.x = 0;
- out->f.y = 0;
- out->f.width = 0;
- out->f.height = 0;
+ out = hb_buffer_init( 0 );
+
+ out->s.frametype = HB_FRAME_SUBTITLE;
+ out->s.flags = HB_BUF_FLAG_EOS;
+ out->s.id = in->s.id;
+ out->s.start = pts;
+ out->s.stop = pts;
+ out->s.renderOffset = AV_NOPTS_VALUE;
+ out->f.x = 0;
+ out->f.y = 0;
+ out->f.width = 0;
+ out->f.height = 0;
}
}
hb_buffer_list_append(&pv->list, out);