From 8e639848ad996bbcf12963aa6fbe7cf379530b43 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 11 Jan 2017 11:32:30 -0700 Subject: reader: fix incorrect duration of UTF8 subtitles The stop time for these was not getting adjusted by the scr_offset --- libhb/reader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libhb') diff --git a/libhb/reader.c b/libhb/reader.c index db86875c0..71a961a1c 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -541,6 +541,10 @@ static int reader_work( hb_work_object_t * w, hb_buffer_t ** buf_in, { buf->s.start += r->scr_offset; } + if (buf->s.stop != AV_NOPTS_VALUE) + { + buf->s.stop += r->scr_offset; + } if (buf->s.renderOffset != AV_NOPTS_VALUE) { buf->s.renderOffset += r->scr_offset; -- cgit v1.2.3