summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 5cc2d6618..f885cae3d 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -5349,6 +5349,11 @@ static void add_ffmpeg_subtitle( hb_title_t *title, hb_stream_t *stream, int id
subtitle->extradata_size = codec->extradata_size;
}
+ if (st->disposition & AV_DISPOSITION_DEFAULT)
+ {
+ subtitle->config.default_track = 1;
+ }
+
subtitle->track = id;
hb_list_add(title->list_subtitle, subtitle);
}