static int rtsp_read_header(AVFormatContext *s,

                            AVFormatParameters *ap)

{

    RTSPState *rt = s->priv_data;

    int ret;



    ret = ff_rtsp_connect(s);

    if (ret)

        return ret;



    rt->real_setup_cache = av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache));

    if (!rt->real_setup_cache)

        return AVERROR(ENOMEM);

    rt->real_setup = rt->real_setup_cache + s->nb_streams * sizeof(*rt->real_setup);



    if (ap->initial_pause) {

         /* do not start immediately */

    } else {

         if (rtsp_read_play(s) < 0) {

            ff_rtsp_close_streams(s);

            ff_rtsp_close_connections(s);

            return AVERROR_INVALIDDATA;

        }

    }



    return 0;

}

static int rtsp_read_header(AVFormatContext *s,

                            AVFormatParameters *ap)

{

    RTSPState *rt = s->priv_data;

    int ret;



    ret = ff_rtsp_connect(s);

    if (ret)

        return ret;



    rt->real_setup_cache = av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache));

    if (!rt->real_setup_cache)

        return AVERROR(ENOMEM);

    rt->real_setup = rt->real_setup_cache + s->nb_streams * sizeof(*rt->real_setup);



    if (ap->initial_pause) {

         

    } else {

         if (rtsp_read_play(s) < 0) {

            ff_rtsp_close_streams(s);

            ff_rtsp_close_connections(s);

            return AVERROR_INVALIDDATA;

        }

    }



    return 0;

}

    rt->real_setup = rt->real_setup_cache + s->nb_streams * sizeof(*rt->real_setup);
static int FUNC_0(AVFormatContext *VAR_0,

                            AVFormatParameters *VAR_1)

{

    RTSPState *rt = VAR_0->priv_data;

    int VAR_2;



    VAR_2 = ff_rtsp_connect(VAR_0);

    if (VAR_2)

        return VAR_2;



    rt->real_setup_cache = av_mallocz(2 * VAR_0->nb_streams * sizeof(*rt->real_setup_cache));

    if (!rt->real_setup_cache)

        return AVERROR(ENOMEM);

    rt->real_setup = rt->real_setup_cache + VAR_0->nb_streams * sizeof(*rt->real_setup);



    if (VAR_1->initial_pause) {

         

    } else {

         if (rtsp_read_play(VAR_0) < 0) {

            ff_rtsp_close_streams(VAR_0);

            ff_rtsp_close_connections(VAR_0);

            return AVERROR_INVALIDDATA;

        }

    }



    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0,
AVFormatParameters *VAR_1)
{ RTSPState *rt = VAR_0->priv_data; int VAR_2; VAR_2 = ff_rtsp_connect(VAR_0); if (VAR_2)
return VAR_2; rt->real_setup_cache = av_mallocz(2 * VAR_0->nb_streams * sizeof(*rt->real_setup_cache)); if (!rt->real_setup_cache)
return AVERROR(ENOMEM); rt->real_setup = rt->real_setup_cache + VAR_0->nb_streams * sizeof(*rt->real_setup); if (VAR_1->initial_pause) { } else { if (rtsp_read_play(VAR_0) < 0) { ff_rtsp_close_streams(VAR_0); ff_rtsp_close_connections(VAR_0); return AVERROR_INVALIDDATA; } } return 0; }