summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-01-11 11:32:30 -0700
committerJohn Stebbins <[email protected]>2017-01-11 11:32:30 -0700
commit8e639848ad996bbcf12963aa6fbe7cf379530b43 (patch)
treea045b091d1bd01981d339a0b81ccde25aa2bcede /libhb
parent0a876569e88943def836b16ecf4c76923e1500f2 (diff)
reader: fix incorrect duration of UTF8 subtitles
The stop time for these was not getting adjusted by the scr_offset
Diffstat (limited to 'libhb')
-rw-r--r--libhb/reader.c4
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;