summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-12-10 09:55:02 -0800
committerJohn Stebbins <[email protected]>2020-03-29 08:23:20 -0600
commit400e8d4784d67978061c059abf5cbe23b0271009 (patch)
treea42a4e0f05dc1f687fe6c536302c42476a06d709
parent19c1ea52330dff8476be1c49b58bdacaf7f060dc (diff)
decavsub: enable dvb subtitle passthrough in mkv
-rw-r--r--libhb/common.c1
-rw-r--r--libhb/muxavformat.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 4d74f5cee..a5f4bcaf5 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -5016,6 +5016,7 @@ int hb_subtitle_can_pass( int source, int mux )
case HB_MUX_AV_MKV:
switch( source )
{
+ case DVBSUB:
case PGSSUB:
case VOBSUB:
case SSASUB:
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 8507c4e5c..be5bf7b5d 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -853,6 +853,11 @@ static int avformatInit( hb_mux_object_t * m )
track->st->codecpar->codec_id = AV_CODEC_ID_HDMV_PGS_SUBTITLE;
} break;
+ case DVBSUB:
+ {
+ track->st->codecpar->codec_id = AV_CODEC_ID_DVB_SUBTITLE;
+ } break;
+
case CC608SUB:
case CC708SUB:
case TX3GSUB: