summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-07-15 09:32:29 -0700
committerJohn Stebbins <[email protected]>2019-07-15 09:32:29 -0700
commit3f9531974c9a8d6c0f43a5ee536c419ac407401b (patch)
tree99dd820772f30a2af60fd0af1d05dd5ea433fe6d /libhb/common.c
parentf99a5981027c1393638ea6b547cf3258ec5dfcda (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.c3
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;