summaryrefslogtreecommitdiffstats
path: root/libhb/muxavformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r--libhb/muxavformat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index e353b0e32..353e519fc 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -960,6 +960,12 @@ static int avformatInit( hb_mux_object_t * m )
{
av_dict_set(&track->st->metadata, "language", lang, 0);
}
+ if (subtitle->config.name != NULL && subtitle->config.name[0] != 0)
+ {
+ // Set subtitle track title
+ av_dict_set(&track->st->metadata, "title",
+ subtitle->config.name, 0);
+ }
}
if (need_fonts)