diff options
author | John Stebbins <[email protected]> | 2019-12-22 13:08:36 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-12-22 13:08:36 -0800 |
commit | efeaeb4c7d20980a57ff8a872d51748a8b396ee4 (patch) | |
tree | 79f1a235ff2ee2a8ea9c167f9797406c6bebb22e /libhb/scan.c | |
parent | 948f1b7b8840a6fe85e1d75cfcc85a0fd9dc97d9 (diff) |
bd: add processing of "secondary" audio tracks
There are actually 2 types. One "secondary" audio type is designated
by a distinct stream id. The other "secondary" audio type is disignated
by being in a separate "secondary" audio list.
Maybe fixes https://github.com/HandBrake/HandBrake/issues/2501
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 7060402d9..23b80b6d6 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -1334,6 +1334,12 @@ static void LookForAudio(hb_scan_t *scan, hb_title_t * title, hb_buffer_t * b) sizeof(audio->config.lang.description) - strlen(audio->config.lang.description) - 1); } + if (audio->config.lang.attributes & HB_AUDIO_ATTR_SECONDARY) + { + strncat(audio->config.lang.description, " (Secondary)", + sizeof(audio->config.lang.description) - + strlen(audio->config.lang.description) - 1); + } if (audio->config.in.channel_layout) { |