Skip to content

Commit

Permalink
reader: fix incorrect duration of UTF8 subtitles
Browse files Browse the repository at this point in the history
The stop time for these was not getting adjusted by the scr_offset
  • Loading branch information
jstebbins committed Jan 11, 2017
1 parent 0a87656 commit 8e63984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libhb/reader.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8e63984

Please sign in to comment.