MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_dirname

Function av_dirname

libavutil/avstring.c:276–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276const char *av_dirname(char *path)
277{
278 char *p = path ? strrchr(path, '/') : NULL;
279
280#if HAVE_DOS_PATHS
281 char *q = path ? strrchr(path, '\\') : NULL;
282 char *d = path ? strchr(path, ':') : NULL;
283
284 d = d ? d + 1 : d;
285
286 p = FFMAX3(p, q, d);
287#endif
288
289 if (!p)
290 return ".";
291
292 *p = '\0';
293
294 return path;
295}
296
297char *av_append_path_component(const char *path, const char *component)
298{

Callers 7

hls_delete_old_segmentsFunction · 0.85
hls_startFunction · 0.85
validate_nameFunction · 0.85
format_nameFunction · 0.85
update_master_pl_infoFunction · 0.85
parse_assetmapFunction · 0.85
imf_read_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected