summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-06-09 15:41:12 -0600
committerJohn Stebbins <[email protected]>2016-06-09 15:42:01 -0600
commita40d3dca5cfa4f5e367eca8864caf777e09e773f (patch)
treed59453d874c0428755926d6b352a3b69a8c5eba1 /libhb
parent2002aa9754292c08ae831051d4c6aa9268753593 (diff)
decsrt: fix dropping of first srt when it's start time is 0
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decsrtsub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c
index 1bfdb179b..e4366f96b 100644
--- a/libhb/decsrtsub.c
+++ b/libhb/decsrtsub.c
@@ -480,7 +480,7 @@ static hb_buffer_t *srt_read( hb_work_private_t *pv )
uint64_t stop_time = ( pv->current_entry.stop +
pv->subtitle->config.offset ) * 90;
- if( !( start_time > pv->start_time && stop_time < pv->stop_time ) )
+ if( !( start_time >= pv->start_time && stop_time < pv->stop_time ) )
{
hb_deep_log( 3, "Discarding SRT at time start %"PRId64", stop %"PRId64, start_time, stop_time);
memset( &pv->current_entry, 0, sizeof( srt_entry_t ) );
@@ -546,7 +546,7 @@ static hb_buffer_t *srt_read( hb_work_private_t *pv )
uint64_t stop_time = ( pv->current_entry.stop +
pv->subtitle->config.offset ) * 90;
- if( !( start_time > pv->start_time && stop_time < pv->stop_time ) )
+ if( !( start_time >= pv->start_time && stop_time < pv->stop_time ) )
{
hb_deep_log( 3, "Discarding SRT at time start %"PRId64", stop %"PRId64, start_time, stop_time);
memset( &pv->current_entry, 0, sizeof( srt_entry_t ) );