]> granicus.if.org Git - handbrake/commitdiff
reader: fix incorrect duration of UTF8 subtitles
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 11 Jan 2017 18:32:30 +0000 (11:32 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 11 Jan 2017 18:33:51 +0000 (11:33 -0700)
The stop time for these was not getting adjusted by the scr_offset

(cherry picked from commit 8e639848ad996bbcf12963aa6fbe7cf379530b43)

libhb/reader.c

index db86875c00bf009c71cde690089fddc272e8c98f..71a961a1c4246cd937db1817b0b77b1ed2b2f8c8 100644 (file)
@@ -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;