From 02c85d192886f055072d801dd7126114932d6c45 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 5 Feb 2020 09:05:10 -0800 Subject: preset: fix subtitle selection with empty language list With HandBrakeCLI --all-subtitles and *no* --subtitle-lang-list, no subtitles were added --- libhb/preset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhb/preset.c b/libhb/preset.c index daa9df81f..e3c6fda60 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -1170,8 +1170,8 @@ int hb_preset_job_add_subtitles(hb_handle_t *h, int title_index, } if (count <= 0) { - // No matching language. Try "Unknown" language - add_subtitle_for_lang(list, title, mux, "und", &behavior); + // No languages in language list, assume "any" + add_subtitle_for_lang(list, title, mux, "any", &behavior); } } -- cgit v1.2.3