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

Function av_basename

libavutil/avstring.c:253–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253const char *av_basename(const char *path)
254{
255 char *p;
256#if HAVE_DOS_PATHS
257 char *q, *d;
258#endif
259
260 if (!path || *path == '\0')
261 return ".";
262
263 p = strrchr(path, '/');
264#if HAVE_DOS_PATHS
265 q = strrchr(path, '\\');
266 d = strchr(path, ':');
267 p = FFMAX3(p, q, d);
268#endif
269
270 if (!p)
271 return path;
272
273 return p + 1;
274}
275
276const char *av_dirname(char *path)
277{

Callers 11

argo_cvg_read_headerFunction · 0.85
hls_append_segmentFunction · 0.85
parse_playlistFunction · 0.85
validate_nameFunction · 0.85
update_master_pl_infoFunction · 0.85
set_segment_filenameFunction · 0.85
mbedtls_debugFunction · 0.85
argo_asf_write_headerFunction · 0.85
write_manifestFunction · 0.85
check_scriptFunction · 0.85

Calls

no outgoing calls

Tested by 1

check_scriptFunction · 0.68