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

Function pts_to_xml_time

gtk/src/chapters.c:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static char *
177pts_to_xml_time (gint64 pts)
178{
179 int hrs, mins;
180 double fsecs;
181 gchar *str;
182
183 hrs = pts / (90000 * 3600);
184 mins = (pts % (90000 * 3600)) / (90000 * 60);
185 fsecs = (pts % (90000 * 60)) / 90000.0;
186 str = g_strdup_printf("%02d:%02d:%06.03f000000", hrs, mins, fsecs);
187 return str;
188}
189
190static char *
191chapter_time_end (GhbValue *chapter, gint64 *time_pts)

Callers 2

chapter_time_endFunction · 0.85
chapter_list_export_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected