diff options
author | eddyg <[email protected]> | 2009-05-08 00:33:01 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2009-05-08 00:33:01 +0000 |
commit | 0c2c36b28e201266161daadfa7b68f9a31f983c3 (patch) | |
tree | 0595f3cc552f75f5657da4585e04e657eca4c5ff /libhb/sync.c | |
parent | f923df5d7f32362798f2660378b40ea4dd91869e (diff) |
Fix timestamps on CC's they are now 100% ready and working. Thanks to j45 and ritsuka for their assistence in getting soft subs finally in HB.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2403 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index c5842148c..eee4708f5 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -449,13 +449,20 @@ static void SyncVideo( hb_work_object_t * w ) sub = NULL; break; } else { + /* + * Sync the subtitles to the incoming video, and use + * the matching converted video timestamp. + * + * Note that it doesn't appear that we need to convert + * timestamps, I guess that they were already correct, + * so just push them through for rendering. + * + */ if( 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; |