static void set_http_options(AVFormatContext *s, AVDictionary **options, HLSContext *c)

{

    const char *proto = avio_find_protocol_name(s->filename);

    int http_base_proto = !av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https");



    if (c->method) {

        av_dict_set(options, "method", c->method, 0);

    } else if (proto && http_base_proto) {

        av_log(c, AV_LOG_WARNING, "No HTTP method set, hls muxer defaulting to method PUT.\n");

        av_dict_set(options, "method", "PUT", 0);

    }

}

static void set_http_options(AVFormatContext *s, AVDictionary **options, HLSContext *c)

{

    const char *proto = avio_find_protocol_name(s->filename);

    int http_base_proto = !av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https");



    if (c->method) {

        av_dict_set(options, "method", c->method, 0);

    } else if (proto && http_base_proto) {

        av_log(c, AV_LOG_WARNING, "No HTTP method set, hls muxer defaulting to method PUT.\n");

        av_dict_set(options, "method", "PUT", 0);

    }

}

static void FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1, HLSContext *VAR_2)

{

    const char *VAR_3 = avio_find_protocol_name(VAR_0->filename);

    int VAR_4 = !av_strcasecmp(VAR_3, "http") || !av_strcasecmp(VAR_3, "https");



    if (VAR_2->method) {

        av_dict_set(VAR_1, "method", VAR_2->method, 0);

    } else if (VAR_3 && VAR_4) {

        av_log(VAR_2, AV_LOG_WARNING, "No HTTP method set, hls muxer defaulting to method PUT.\n");

        av_dict_set(VAR_1, "method", "PUT", 0);

    }

}

static void FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1, HLSContext *VAR_2)
{ const char *VAR_3 = avio_find_protocol_name(VAR_0->filename); int VAR_4 = !av_strcasecmp(VAR_3, "http") || !av_strcasecmp(VAR_3, "https"); if (VAR_2->method) { av_dict_set(VAR_1, "method", VAR_2->method, 0); } else if (VAR_3 && VAR_4) { av_log(VAR_2, AV_LOG_WARNING, "No HTTP method set, hls muxer defaulting to method PUT.\n"); av_dict_set(VAR_1, "method", "PUT", 0); } }