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

Function ghb_file_is_ssa_subtitle

gtk/src/util.c:237–246  ·  view source on GitHub ↗

* Check whether an input file is a potential subtitle file. */

Source from the content-addressed store, hash-verified

235 * Check whether an input file is a potential subtitle file.
236 */
237G_MODULE_EXPORT gboolean
238ghb_file_is_ssa_subtitle (const char *filename)
239{
240 for (guint i = 0; i < G_N_ELEMENTS(ssa_extensions); i++)
241 {
242 if (hb_str_ends_with(filename, ssa_extensions[i]))
243 return TRUE;
244 }
245 return FALSE;
246}
247
248/*
249 * Check whether an input file is an SRT or text subtitle file.

Callers 2

ghb_add_subtitle_filesFunction · 0.85
ghb_file_is_subtitleFunction · 0.85

Calls 1

hb_str_ends_withFunction · 0.85

Tested by

no test coverage detected