static int opt_streamid(const char *opt, const char *arg)

{

    int idx;

    char *p;

    char idx_str[16];



    av_strlcpy(idx_str, arg, sizeof(idx_str));

    p = strchr(idx_str, ':');

    if (!p) {

        fprintf(stderr,

                "Invalid value '%s' for option '%s', required syntax is 'index:value'\n",

                arg, opt);

        ffmpeg_exit(1);

    }

    *p++ = '\0';

    idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);

    streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, idx+1);

    streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

    return 0;

}

static int opt_streamid(const char *opt, const char *arg)

{

    int idx;

    char *p;

    char idx_str[16];



    av_strlcpy(idx_str, arg, sizeof(idx_str));

    p = strchr(idx_str, ':');

    if (!p) {

        fprintf(stderr,

                "Invalid value '%s' for option '%s', required syntax is 'index:value'\n",

                arg, opt);

        ffmpeg_exit(1);

    }

    *p++ = '\0';

    idx = parse_number_or_die(opt, idx_str, OPT_INT, 0, INT_MAX);

    streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, idx+1);

    streamid_map[idx] = parse_number_or_die(opt, p, OPT_INT, 0, INT_MAX);

    return 0;

}

static int FUNC_0(const char *VAR_0, const char *VAR_1)

{

    int VAR_2;

    char *VAR_3;

    char VAR_4[16];



    av_strlcpy(VAR_4, VAR_1, sizeof(VAR_4));

    VAR_3 = strchr(VAR_4, ':');

    if (!VAR_3) {

        fprintf(stderr,

                "Invalid value '%s' for option '%s', required syntax is 'index:value'\n",

                VAR_1, VAR_0);

        ffmpeg_exit(1);

    }

    *VAR_3++ = '\0';

    VAR_2 = parse_number_or_die(VAR_0, VAR_4, OPT_INT, 0, INT_MAX);

    streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, VAR_2+1);

    streamid_map[VAR_2] = parse_number_or_die(VAR_0, VAR_3, OPT_INT, 0, INT_MAX);

    return 0;

}

static int FUNC_0(const char *VAR_0, const char *VAR_1)
{ int VAR_2; char *VAR_3; char VAR_4[16]; av_strlcpy(VAR_4, VAR_1, sizeof(VAR_4)); VAR_3 = strchr(VAR_4, ':'); if (!VAR_3) { fprintf(stderr,
"Invalid value '%s' for option '%s', required syntax is 'index:value'\n",
VAR_1, VAR_0); ffmpeg_exit(1); } *VAR_3++ = '\0'; VAR_2 = parse_number_or_die(VAR_0, VAR_4, OPT_INT, 0, INT_MAX); streamid_map = grow_array(streamid_map, sizeof(*streamid_map), &nb_streamid_map, VAR_2+1); streamid_map[VAR_2] = parse_number_or_die(VAR_0, VAR_3, OPT_INT, 0, INT_MAX); return 0; }