From: John Stebbins Date: Wed, 11 Jan 2017 18:32:30 +0000 (-0700) Subject: reader: fix incorrect duration of UTF8 subtitles X-Git-Tag: 1.0.2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e452ade4408fd37da73ca8a486d5a067506bc6ad;p=handbrake reader: fix incorrect duration of UTF8 subtitles The stop time for these was not getting adjusted by the scr_offset (cherry picked from commit 8e639848ad996bbcf12963aa6fbe7cf379530b43) --- 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;