pv->common->start_found = 1;
// Unblock anybody waiting on this threads last PTS
setSyncPTS(pv, INT64_MAX, 0);
+ if (job->indepth_scan)
+ {
+ // During subtitle scan, sync is the end of the pipeline.
+ // Terminate job when EOF reached.
+ *w->done = 1;
+ }
return HB_WORK_DONE;
}
hb_buffer_close( &buf_out );
}
- // Consume data in incoming fifo till job complete so that
- // residual data does not stall the pipeline
+ // Consume data in incoming fifo till job completes so that
+ // residual data does not stall the pipeline. There can be
+ // residual data during point-to-point encoding.
while ((w->die == NULL || !*w->die) &&
!*w->done && w->fifo_in != NULL)
{