diff options
author | jstebbins <[email protected]> | 2014-08-27 17:35:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-08-27 17:35:50 +0000 |
commit | 6319afe7677f7ee6aceffe9dc1a5ba44eaa983c3 (patch) | |
tree | d0eee9e78980b27c45162b9d9b0bf4f2cc4e4c31 /libhb | |
parent | c64e27059451450dad978a2e7ec5f997fb839628 (diff) |
libhb: fix stop time of subtitles
scr_offset was not accounted for in stop time
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6372 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-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 5f753a7ed..4fd56ff1c 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -651,6 +651,10 @@ void ReadLoop( void * _w ) // buf->s.id, r->scr_offset, buf->s.start, // buf->s.start - r->scr_offset); 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 ) { |