static void rtsp_parse_rtp_info(RTSPState *rt, const char *p)

{

    int read = 0;

    char key[20], value[1024], url[1024] = "";

    uint32_t seq = 0, rtptime = 0;



    for (;;) {

        p += strspn(p, SPACE_CHARS);

        if (!*p)

            break;

        get_word_sep(key, sizeof(key), "=", &p);

        if (*p != '=')

            break;

        p++;

        get_word_sep(value, sizeof(value), ";, ", &p);

        read++;

        if (!strcmp(key, "url"))

            av_strlcpy(url, value, sizeof(url));

        else if (!strcmp(key, "seq"))

            seq = strtol(value, NULL, 10);

        else if (!strcmp(key, "rtptime"))

            rtptime = strtol(value, NULL, 10);

        if (*p == ',') {

            handle_rtp_info(rt, url, seq, rtptime);

            url[0] = '\0';

            seq = rtptime = 0;

            read = 0;

        }

        if (*p)

            p++;

    }

    if (read > 0)

        handle_rtp_info(rt, url, seq, rtptime);

}

static void rtsp_parse_rtp_info(RTSPState *rt, const char *p)

{

    int read = 0;

    char key[20], value[1024], url[1024] = "";

    uint32_t seq = 0, rtptime = 0;



    for (;;) {

        p += strspn(p, SPACE_CHARS);

        if (!*p)

            break;

        get_word_sep(key, sizeof(key), "=", &p);

        if (*p != '=')

            break;

        p++;

        get_word_sep(value, sizeof(value), ";, ", &p);

        read++;

        if (!strcmp(key, "url"))

            av_strlcpy(url, value, sizeof(url));

        else if (!strcmp(key, "seq"))

            seq = strtol(value, NULL, 10);

        else if (!strcmp(key, "rtptime"))

            rtptime = strtol(value, NULL, 10);

        if (*p == ',') {

            handle_rtp_info(rt, url, seq, rtptime);

            url[0] = '\0';

            seq = rtptime = 0;

            read = 0;

        }

        if (*p)

            p++;

    }

    if (read > 0)

        handle_rtp_info(rt, url, seq, rtptime);

}

static void FUNC_0(RTSPState *VAR_0, const char *VAR_1)

{

    int VAR_2 = 0;

    char VAR_3[20], VAR_4[1024], VAR_5[1024] = "";

    uint32_t seq = 0, rtptime = 0;



    for (;;) {

        VAR_1 += strspn(VAR_1, SPACE_CHARS);

        if (!*VAR_1)

            break;

        get_word_sep(VAR_3, sizeof(VAR_3), "=", &VAR_1);

        if (*VAR_1 != '=')

            break;

        VAR_1++;

        get_word_sep(VAR_4, sizeof(VAR_4), ";, ", &VAR_1);

        VAR_2++;

        if (!strcmp(VAR_3, "VAR_5"))

            av_strlcpy(VAR_5, VAR_4, sizeof(VAR_5));

        else if (!strcmp(VAR_3, "seq"))

            seq = strtol(VAR_4, NULL, 10);

        else if (!strcmp(VAR_3, "rtptime"))

            rtptime = strtol(VAR_4, NULL, 10);

        if (*VAR_1 == ',') {

            handle_rtp_info(VAR_0, VAR_5, seq, rtptime);

            VAR_5[0] = '\0';

            seq = rtptime = 0;

            VAR_2 = 0;

        }

        if (*VAR_1)

            VAR_1++;

    }

    if (VAR_2 > 0)

        handle_rtp_info(VAR_0, VAR_5, seq, rtptime);

}

static void FUNC_0(RTSPState *VAR_0, const char *VAR_1)
{ int VAR_2 = 0; char VAR_3[20], VAR_4[1024], VAR_5[1024] = ""; uint32_t seq = 0, rtptime = 0; for (;;) { VAR_1 += strspn(VAR_1, SPACE_CHARS); if (!*VAR_1)
break; get_word_sep(VAR_3, sizeof(VAR_3), "=", &VAR_1); if (*VAR_1 != '=')
break; VAR_1++; get_word_sep(VAR_4, sizeof(VAR_4), ";, ", &VAR_1); VAR_2++; if (!strcmp(VAR_3, "VAR_5"))
av_strlcpy(VAR_5, VAR_4, sizeof(VAR_5)); else if (!strcmp(VAR_3, "seq"))
seq = strtol(VAR_4, NULL, 10); else if (!strcmp(VAR_3, "rtptime"))
rtptime = strtol(VAR_4, NULL, 10); if (*VAR_1 == ',') { handle_rtp_info(VAR_0, VAR_5, seq, rtptime); VAR_5[0] = '\0'; seq = rtptime = 0; VAR_2 = 0; } if (*VAR_1)
VAR_1++; } if (VAR_2 > 0)
handle_rtp_info(VAR_0, VAR_5, seq, rtptime); }