void ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)

{

    if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {

        ByteIOContext pb;

        RTSPState *rt = s->priv_data;

        int len = strlen(p) * 6 / 8;

        char *buf = av_mallocz(len);

        av_base64_decode(buf, p, len);



        if (rtp_asf_fix_header(buf, len) < 0)

            av_log(s, AV_LOG_ERROR,

                   "Failed to fix invalid RTSP-MS/ASF min_pktsize\n");

        init_packetizer(&pb, buf, len);

        if (rt->asf_ctx) {

            av_close_input_stream(rt->asf_ctx);

            rt->asf_ctx = NULL;

        }

        av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);

        rt->asf_pb_pos = url_ftell(&pb);

        av_free(buf);

        rt->asf_ctx->pb = NULL;

    }

}

void ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)

{

    if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {

        ByteIOContext pb;

        RTSPState *rt = s->priv_data;

        int len = strlen(p) * 6 / 8;

        char *buf = av_mallocz(len);

        av_base64_decode(buf, p, len);



        if (rtp_asf_fix_header(buf, len) < 0)

            av_log(s, AV_LOG_ERROR,

                   "Failed to fix invalid RTSP-MS/ASF min_pktsize\n");

        init_packetizer(&pb, buf, len);

        if (rt->asf_ctx) {

            av_close_input_stream(rt->asf_ctx);

            rt->asf_ctx = NULL;

        }

        av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);

        rt->asf_pb_pos = url_ftell(&pb);

        av_free(buf);

        rt->asf_ctx->pb = NULL;

    }

}

void ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)         av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);
void FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)

{

    if (av_strstart(VAR_1, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &VAR_1)) {

        ByteIOContext pb;

        RTSPState *rt = VAR_0->priv_data;

        int VAR_2 = strlen(VAR_1) * 6 / 8;

        char *VAR_3 = av_mallocz(VAR_2);

        av_base64_decode(VAR_3, VAR_1, VAR_2);



        if (rtp_asf_fix_header(VAR_3, VAR_2) < 0)

            av_log(VAR_0, AV_LOG_ERROR,

                   "Failed to fix invalid RTSP-MS/ASF min_pktsize\n");

        init_packetizer(&pb, VAR_3, VAR_2);

        if (rt->asf_ctx) {

            av_close_input_stream(rt->asf_ctx);

            rt->asf_ctx = NULL;

        }

        av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);

        rt->asf_pb_pos = url_ftell(&pb);

        av_free(VAR_3);

        rt->asf_ctx->pb = NULL;

    }

}

void FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)
{ if (av_strstart(VAR_1, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &VAR_1)) { ByteIOContext pb; RTSPState *rt = VAR_0->priv_data; int VAR_2 = strlen(VAR_1) * 6 / 8; char *VAR_3 = av_mallocz(VAR_2); av_base64_decode(VAR_3, VAR_1, VAR_2); if (rtp_asf_fix_header(VAR_3, VAR_2) < 0)
av_log(VAR_0, AV_LOG_ERROR,
"Failed to fix invalid RTSP-MS/ASF min_pktsize\n"); init_packetizer(&pb, VAR_3, VAR_2); if (rt->asf_ctx) { av_close_input_stream(rt->asf_ctx); rt->asf_ctx = NULL; } av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL); rt->asf_pb_pos = url_ftell(&pb); av_free(VAR_3); rt->asf_ctx->pb = NULL; } }