diff options
author | eddyg <[email protected]> | 2009-05-06 22:25:34 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2009-05-06 22:25:34 +0000 |
commit | 4123d300dcd3105fc6ce5ef920205fcd83a6312b (patch) | |
tree | ca84179a0b8d07b6b4b389537864aedbc66f9942 /libhb/sync.c | |
parent | 6c18f1b2bb0d939bd76a958907b2848db98ba380 (diff) |
Fix Closed Caption start/stop times, switched to SRT encoding including markup for text subs internal to HB.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2392 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index fb02b1387..a0dfd6627 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -418,8 +418,11 @@ static void SyncVideo( hb_work_object_t * w ) */ if( sub->size == 0 || sub->start < cur->start ) { + uint64_t duration; + duration = sub->stop - sub->start; sub = hb_fifo_get( subtitle->fifo_raw ); sub->start = pv->next_start; + sub->stop = sub->start + duration; hb_fifo_push( subtitle->fifo_out, sub ); } else { sub = NULL; |