From af25ef9bae5ba47e28003a482cfc653a2d900f05 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 6 Mar 2016 12:57:07 -0700 Subject: [PATCH] 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. --- libhb/sync.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.40.0