MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / has_default_subtitle

Function has_default_subtitle

libhb/preset.c:1116–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114} subtitle_behavior_t;
1115
1116static int has_default_subtitle(hb_value_array_t *list)
1117{
1118 int ii, count, def;
1119
1120 count = hb_value_array_len(list);
1121 for (ii = 0; ii < count; ii++)
1122 {
1123 hb_value_t *sub = hb_value_array_get(list, ii);
1124 def = hb_value_get_int(hb_dict_get(sub, "Default"));
1125 if (def)
1126 {
1127 return def;
1128 }
1129 }
1130 return 0;
1131}
1132
1133static void add_subtitle_for_lang(hb_value_array_t *list, hb_title_t *title,
1134 int mux, const char *lang, int passthru_name,

Callers 1

add_subtitle_for_langFunction · 0.85

Calls 4

hb_value_array_lenFunction · 0.85
hb_value_array_getFunction · 0.85
hb_value_get_intFunction · 0.85
hb_dict_getFunction · 0.85

Tested by

no test coverage detected