static uint64_t get_channel_layout_single(const char *name, int name_len)

{

    int i;

    char *end;

    int64_t layout;



    for (i = 0; i < FF_ARRAY_ELEMS(channel_layout_map); i++) {

        if (strlen(channel_layout_map[i].name) == name_len &&

            !memcmp(channel_layout_map[i].name, name, name_len))

            return channel_layout_map[i].layout;

    }

    for (i = 0; i < FF_ARRAY_ELEMS(channel_names); i++)

        if (channel_names[i].name &&

            strlen(channel_names[i].name) == name_len &&

            !memcmp(channel_names[i].name, name, name_len))

            return (int64_t)1 << i;

    i = strtol(name, &end, 10);



    if ((end + 1 - name == name_len && *end  == 'c'))

        return av_get_default_channel_layout(i);



    layout = strtoll(name, &end, 0);

    if (end - name == name_len)

        return FFMAX(layout, 0);

    return 0;

}

static uint64_t get_channel_layout_single(const char *name, int name_len)

{

    int i;

    char *end;

    int64_t layout;



    for (i = 0; i < FF_ARRAY_ELEMS(channel_layout_map); i++) {

        if (strlen(channel_layout_map[i].name) == name_len &&

            !memcmp(channel_layout_map[i].name, name, name_len))

            return channel_layout_map[i].layout;

    }

    for (i = 0; i < FF_ARRAY_ELEMS(channel_names); i++)

        if (channel_names[i].name &&

            strlen(channel_names[i].name) == name_len &&

            !memcmp(channel_names[i].name, name, name_len))

            return (int64_t)1 << i;

    i = strtol(name, &end, 10);



    if ((end + 1 - name == name_len && *end  == 'c'))

        return av_get_default_channel_layout(i);



    layout = strtoll(name, &end, 0);

    if (end - name == name_len)

        return FFMAX(layout, 0);

    return 0;

}

    if ((end + 1 - name == name_len && *end  == 'c'))     if (end - name == name_len)
static uint64_t FUNC_0(const char *name, int name_len)

{

    int VAR_0;

    char *VAR_1;

    int64_t layout;



    for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(channel_layout_map); VAR_0++) {

        if (strlen(channel_layout_map[VAR_0].name) == name_len &&

            !memcmp(channel_layout_map[VAR_0].name, name, name_len))

            return channel_layout_map[VAR_0].layout;

    }

    for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(channel_names); VAR_0++)

        if (channel_names[VAR_0].name &&

            strlen(channel_names[VAR_0].name) == name_len &&

            !memcmp(channel_names[VAR_0].name, name, name_len))

            return (int64_t)1 << VAR_0;

    VAR_0 = strtol(name, &VAR_1, 10);



    if ((VAR_1 + 1 - name == name_len && *VAR_1  == 'c'))

        return av_get_default_channel_layout(VAR_0);



    layout = strtoll(name, &VAR_1, 0);

    if (VAR_1 - name == name_len)

        return FFMAX(layout, 0);

    return 0;

}

static uint64_t FUNC_0(const char *name, int name_len)
{ int VAR_0; char *VAR_1; int64_t layout; for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(channel_layout_map); VAR_0++) { if (strlen(channel_layout_map[VAR_0].name) == name_len &&
!memcmp(channel_layout_map[VAR_0].name, name, name_len))
return channel_layout_map[VAR_0].layout; } for (VAR_0 = 0; VAR_0 < FF_ARRAY_ELEMS(channel_names); VAR_0++) if (channel_names[VAR_0].name &&
strlen(channel_names[VAR_0].name) == name_len &&
!memcmp(channel_names[VAR_0].name, name, name_len))
return (int64_t)1 << VAR_0; VAR_0 = strtol(name, &VAR_1, 10); if ((VAR_1 + 1 - name == name_len && *VAR_1  == 'c'))
return av_get_default_channel_layout(VAR_0); layout = strtoll(name, &VAR_1, 0); if (VAR_1 - name == name_len)
return FFMAX(layout, 0); return 0; }