diff options
author | John Stebbins <[email protected]> | 2016-03-06 12:57:07 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-06 12:57:07 -0700 |
commit | af25ef9bae5ba47e28003a482cfc653a2d900f05 (patch) | |
tree | e0ee3187f75f1adb0d3be765cdf529bd1e03e5e6 /libhb/sync.c | |
parent | a6e7eba9e0c626af7ebac55fabce3ba812691d28 (diff) |
sync: fix handling of end-of-subtitle markers
Under some discontinuity cases, these markers were getting passed
through to the muxer, which caused a crash.
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index 90f360ea6..48d857a61 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -986,6 +986,10 @@ static void OutputBuffer( sync_common_t * common ) { buf->s.start = out_stream->next_pts; } + if (buf->s.stop < out_stream->next_pts) + { + buf->s.stop = out_stream->next_pts; + } out_stream->next_pts = buf->s.start; } |