Lines Matching defs:spec
423 const char *spec, const char **indexptr,
427 while (*spec) {
428 if (*spec <= '9' && *spec >= '0') { /* opt:index */
430 *indexptr = spec;
432 } else if (*spec == 'v' || *spec == 'a' || *spec == 's' || *spec == 'd' ||
433 *spec == 't' || *spec == 'V') { /* opt:[vasdtV] */
437 switch (*spec++) {
446 if (*spec && *spec++ != ':') /* If we are not at the end, then another specifier must follow. */
453 } else if (*spec == 'p' && *(spec + 1) == ':') {
457 spec += 2;
458 prog_id = strtol(spec, &endptr, 0);
460 if (spec == endptr || (*endptr && *endptr++ != ':'))
462 spec = endptr;
481 } else if (*spec == '#' ||
482 (*spec == 'i' && *(spec + 1) == ':')) {
485 spec += 1 + (*spec == 'i');
486 stream_id = strtol(spec, &endptr, 0);
487 if (spec == endptr || *endptr) /* Disallow empty id and make sure we are at the end. */
490 } else if (*spec == 'm' && *(spec + 1) == ':') {
496 spec += 2;
497 val = strchr(spec, ':');
499 key = val ? av_strndup(spec, val - spec) : av_strdup(spec);
515 } else if (*spec == 'u' && *(spec + 1) == '\0') {
546 const char *spec)
554 ret = match_stream_specifier(s, st, spec, &indexptr, &p);
568 if (spec == indexptr)
575 ret = match_stream_specifier(s, candidate, spec, NULL, NULL);
585 av_log(s, AV_LOG_ERROR, "Invalid stream specifier: %s.\n", spec);