static void rtsp_send_cmd(AVFormatContext *s,

                          const char *cmd, RTSPMessageHeader *reply,

                          unsigned char **content_ptr)

{

    RTSPState *rt = s->priv_data;

    char buf[4096], buf1[1024];



    rt->seq++;

    av_strlcpy(buf, cmd, sizeof(buf));

    snprintf(buf1, sizeof(buf1), "CSeq: %d\r\n", rt->seq);

    av_strlcat(buf, buf1, sizeof(buf));

    if (rt->session_id[0] != '\0' && !strstr(cmd, "\nIf-Match:")) {

        snprintf(buf1, sizeof(buf1), "Session: %s\r\n", rt->session_id);

        av_strlcat(buf, buf1, sizeof(buf));

    }

    av_strlcat(buf, "\r\n", sizeof(buf));

#ifdef DEBUG

    printf("Sending:\n%s--\n", buf);

#endif

    url_write(rt->rtsp_hd, buf, strlen(buf));



    rtsp_read_reply(rt, reply, content_ptr);

}

static void rtsp_send_cmd(AVFormatContext *s,

                          const char *cmd, RTSPMessageHeader *reply,

                          unsigned char **content_ptr)

{

    RTSPState *rt = s->priv_data;

    char buf[4096], buf1[1024];



    rt->seq++;

    av_strlcpy(buf, cmd, sizeof(buf));

    snprintf(buf1, sizeof(buf1), "CSeq: %d\r\n", rt->seq);

    av_strlcat(buf, buf1, sizeof(buf));

    if (rt->session_id[0] != '\0' && !strstr(cmd, "\nIf-Match:")) {

        snprintf(buf1, sizeof(buf1), "Session: %s\r\n", rt->session_id);

        av_strlcat(buf, buf1, sizeof(buf));

    }

    av_strlcat(buf, "\r\n", sizeof(buf));

#ifdef DEBUG

    printf("Sending:\n%s--\n", buf);

#endif

    url_write(rt->rtsp_hd, buf, strlen(buf));



    rtsp_read_reply(rt, reply, content_ptr);

}

static void FUNC_0(AVFormatContext *VAR_0,

                          const char *VAR_1, RTSPMessageHeader *VAR_2,

                          unsigned char **VAR_3)

{

    RTSPState *rt = VAR_0->priv_data;

    char VAR_4[4096], VAR_5[1024];



    rt->seq++;

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

    snprintf(VAR_5, sizeof(VAR_5), "CSeq: %d\r\n", rt->seq);

    av_strlcat(VAR_4, VAR_5, sizeof(VAR_4));

    if (rt->session_id[0] != '\0' && !strstr(VAR_1, "\nIf-Match:")) {

        snprintf(VAR_5, sizeof(VAR_5), "Session: %VAR_0\r\n", rt->session_id);

        av_strlcat(VAR_4, VAR_5, sizeof(VAR_4));

    }

    av_strlcat(VAR_4, "\r\n", sizeof(VAR_4));

#ifdef DEBUG

    printf("Sending:\n%VAR_0--\n", VAR_4);

#endif

    url_write(rt->rtsp_hd, VAR_4, strlen(VAR_4));



    rtsp_read_reply(rt, VAR_2, VAR_3);

}

static void FUNC_0(AVFormatContext *VAR_0,
const char *VAR_1, RTSPMessageHeader *VAR_2,
unsigned char **VAR_3)
{ RTSPState *rt = VAR_0->priv_data; char VAR_4[4096], VAR_5[1024]; rt->seq++; av_strlcpy(VAR_4, VAR_1, sizeof(VAR_4)); snprintf(VAR_5, sizeof(VAR_5), "CSeq: %d\r\n", rt->seq); av_strlcat(VAR_4, VAR_5, sizeof(VAR_4)); if (rt->session_id[0] != '\0' && !strstr(VAR_1, "\nIf-Match:")) { snprintf(VAR_5, sizeof(VAR_5), "Session: %VAR_0\r\n", rt->session_id); av_strlcat(VAR_4, VAR_5, sizeof(VAR_4)); } av_strlcat(VAR_4, "\r\n", sizeof(VAR_4)); #ifdef DEBUG
printf("Sending:\n%VAR_0--\n", VAR_4); #endif
url_write(rt->rtsp_hd, VAR_4, strlen(VAR_4)); rtsp_read_reply(rt, VAR_2, VAR_3); }