diff options
author | John Stebbins <[email protected]> | 2017-01-11 11:32:30 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-01-11 11:32:30 -0700 |
commit | 8e639848ad996bbcf12963aa6fbe7cf379530b43 (patch) | |
tree | a045b091d1bd01981d339a0b81ccde25aa2bcede | |
parent | 0a876569e88943def836b16ecf4c76923e1500f2 (diff) |
reader: fix incorrect duration of UTF8 subtitles
The stop time for these was not getting adjusted by the scr_offset
-rw-r--r-- | libhb/reader.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |