- long length;
- char *p, *q;
- int line = 1;
- uint64_t start_time = ( pv->current_entry.start +
- pv->subtitle->config.offset ) * 90;
- uint64_t stop_time = ( pv->current_entry.stop +
- pv->subtitle->config.offset ) * 90;
-
- 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 ) );
- ++(pv->number_of_entries);
- pv->current_state = k_state_timecode;
- continue;
- }
+ reprocess = 1;
+ pv->current_state = k_state_inEntry;
+ }
+ continue;
+ }
+ /*
+ * We found the next entry - or a really rare error condition
+ */
+ pv->last_entry_number = entry_number;
+ resync = 0;
+ if( *pv->current_entry.text )
+ {
+ long length;
+ char *p, *q;
+ int line = 1;
+ uint64_t start_time = ( pv->current_entry.start +
+ pv->subtitle->config.offset ) * 90;
+ uint64_t stop_time = ( pv->current_entry.stop +
+ pv->subtitle->config.offset ) * 90;
+
+ 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 ) );
+ ++(pv->number_of_entries);
+ pv->current_state = k_state_timecode;
+ continue;
+ }