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

Function av_match_name

libavutil/avstring.c:346–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346int av_match_name(const char *name, const char *names)
347{
348 const char *p;
349 size_t len, namelen;
350
351 if (!name || !names)
352 return 0;
353
354 namelen = strlen(name);
355 while (*names) {
356 int negate = '-' == *names;
357 p = strchr(names, ',');
358 if (!p)
359 p = names + strlen(names);
360 names += negate;
361 len = FFMAX(p - names, namelen);
362 if (!av_strncasecmp(name, names, len) || !strncmp("ALL", names, FFMAX(3, p - names)))
363 return !negate;
364 names = p + (*p == ',');
365 }
366 return 0;
367}
368
369int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end,
370 unsigned int flags)

Callers 14

parse_slave_fifo_policyFunction · 0.85
test_segmentFunction · 0.85
av_match_extFunction · 0.85
ff_match_url_extFunction · 0.85
av_guess_formatFunction · 0.85
av_guess_codecFunction · 0.85
av_find_input_formatFunction · 0.85
av_probe_input_format3Function · 0.85
ffurl_get_protocolsFunction · 0.85
set_string_boolFunction · 0.85
get_pix_fmt_internalFunction · 0.85

Calls 1

av_strncasecmpFunction · 0.85

Tested by 1

test_segmentFunction · 0.68