diff options
author | John Stebbins <[email protected]> | 2019-01-05 16:53:50 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-01-14 13:36:08 -0800 |
commit | 36a9a9f63aaf8dad0e84605354e5e9d4359429eb (patch) | |
tree | 84f26ffe3a82b6272e6fb205bddc35f26f8f8c3d /libhb/work.c | |
parent | 776c2d3d93c08c6cc12d9fc42bc290c3e57772ff (diff) |
Add SSA subtitle import
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/work.c b/libhb/work.c index ac5ae5533..5c7efb0b7 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -600,7 +600,7 @@ void hb_display_job_info(hb_job_t *job) subtitle->lang, subtitle->track, subtitle->id, subtitle->format == PICTURESUB ? "Picture" : "Text"); } - else if( subtitle->source == SRTSUB ) + else if (subtitle->source == IMPORTSRT) { /* For SRT, print offset and charset too */ hb_log(" * subtitle track %d, %s (track %d, id 0x%x, Text) -> " @@ -1619,10 +1619,10 @@ static void do_job(hb_job_t *job) // Since that number is unbounded, the FIFO must be made // (effectively) unbounded in capacity. subtitle->fifo_raw = hb_fifo_init( FIFO_UNBOUNDED, FIFO_UNBOUNDED_WAKE ); - if (w->id != WORK_DECSRTSUB) + // Check if input comes from a file. + if (subtitle->source != IMPORTSRT && + subtitle->source != IMPORTSSA) { - // decsrtsub is a buffer source like reader. It's input comes - // from a file. subtitle->fifo_in = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); } if (!job->indepth_scan) |