summaryrefslogtreecommitdiffstats
path: root/libhb/reader.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-08-27 17:35:50 +0000
committerjstebbins <[email protected]>2014-08-27 17:35:50 +0000
commit6319afe7677f7ee6aceffe9dc1a5ba44eaa983c3 (patch)
treed0eee9e78980b27c45162b9d9b0bf4f2cc4e4c31 /libhb/reader.c
parentc64e27059451450dad978a2e7ec5f997fb839628 (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/reader.c')
-rw-r--r--libhb/reader.c4
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 )
{