| 1086 | } |
| 1087 | |
| 1088 | static void add_subtitle(hb_value_array_t *list, int track, |
| 1089 | int make_default, int force, int burn, |
| 1090 | const char * name) |
| 1091 | { |
| 1092 | hb_dict_t *subtitle_dict = hb_dict_init(); |
| 1093 | hb_dict_set_int(subtitle_dict, "Track", track); |
| 1094 | hb_dict_set_bool(subtitle_dict, "Default", make_default); |
| 1095 | hb_dict_set_bool(subtitle_dict, "Forced", force); |
| 1096 | hb_dict_set_bool(subtitle_dict, "Burn", burn); |
| 1097 | if (name != NULL && name[0] != 0) |
| 1098 | { |
| 1099 | hb_dict_set_string(subtitle_dict, "Name", name); |
| 1100 | } |
| 1101 | hb_value_array_append(list, subtitle_dict); |
| 1102 | } |
| 1103 | |
| 1104 | typedef struct subtitle_behavior_s |
| 1105 | { |
no test coverage detected