static int http_open(URLContext *h, const char *uri, int flags)

{

    HTTPContext *s = h->priv_data;



    h->is_streamed = 1;



    s->filesize = -1;

    av_strlcpy(s->location, uri, sizeof(s->location));



    if (s->headers) {

        int len = strlen(s->headers);

        if (len < 2 || strcmp("\r\n", s->headers + len - 2))

            av_log(h, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n");

    }



    return http_open_cnx(h);

}

static int http_open(URLContext *h, const char *uri, int flags)

{

    HTTPContext *s = h->priv_data;



    h->is_streamed = 1;



    s->filesize = -1;

    av_strlcpy(s->location, uri, sizeof(s->location));



    if (s->headers) {

        int len = strlen(s->headers);

        if (len < 2 || strcmp("\r\n", s->headers + len - 2))

            av_log(h, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n");

    }



    return http_open_cnx(h);

}

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

{

    HTTPContext *s = VAR_0->priv_data;



    VAR_0->is_streamed = 1;



    s->filesize = -1;

    av_strlcpy(s->location, VAR_1, sizeof(s->location));



    if (s->headers) {

        int VAR_3 = strlen(s->headers);

        if (VAR_3 < 2 || strcmp("\r\n", s->headers + VAR_3 - 2))

            av_log(VAR_0, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n");

    }



    return http_open_cnx(VAR_0);

}

static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)
{ HTTPContext *s = VAR_0->priv_data; VAR_0->is_streamed = 1; s->filesize = -1; av_strlcpy(s->location, VAR_1, sizeof(s->location)); if (s->headers) { int VAR_3 = strlen(s->headers); if (VAR_3 < 2 || strcmp("\r\n", s->headers + VAR_3 - 2))
av_log(VAR_0, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n"); } return http_open_cnx(VAR_0); }