diff options
author | John Stebbins <[email protected]> | 2019-07-15 09:32:29 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-07-15 09:32:29 -0700 |
commit | 3f9531974c9a8d6c0f43a5ee536c419ac407401b (patch) | |
tree | 99dd820772f30a2af60fd0af1d05dd5ea433fe6d /libhb/common.c | |
parent | f99a5981027c1393638ea6b547cf3258ec5dfcda (diff) |
Fix dropped audio when embedded CC sub is selected
The subtitle ID assigned to CC embedded in video collided with regular
track IDs in some file types.
Fixes https://github.com/HandBrake/HandBrake/issues/2103
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c index 747b911fd..63f34971f 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -4919,7 +4919,8 @@ int hb_import_subtitle_add( const hb_job_t * job, return 0; } - subtitle->id = (hb_list_count(job->list_subtitle) << 8) | 0xFF; + subtitle->id = (hb_list_count(job->list_subtitle) << 8) | + HB_SUBTITLE_IMPORT_TAG; subtitle->format = TEXTSUB; subtitle->source = source; subtitle->codec = source == IMPORTSRT ? WORK_DECSRTSUB : WORK_DECSSASUB; |