diff options
author | John Stebbins <[email protected]> | 2016-05-28 08:12:34 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-28 08:12:34 -0700 |
commit | f5f665474b2fbe5e1674936907a4c596bf29dfe4 (patch) | |
tree | c78cef0772ab1727cce4e0a831a688ccee80b858 /libhb/stream.c | |
parent | 7aa4a16f51f701c3a10a474b17b37db7f5c661d1 (diff) |
libhb: pass through "default" subtitle flag ... (#203)
... when applying presets
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 5 |
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); } |