static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize,

                            int *rbuflen)

{

    RTSPState *rt = s->priv_data;

    int idx       = 0;

    int ret       = 0;

    *rbuflen      = 0;



    do {

        ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1);

        if (ret < 0)

            return ret;

        if (rbuf[idx] == '\r') {

            /* Ignore */

        } else if (rbuf[idx] == '\n') {

            rbuf[idx] = '\0';

            *rbuflen  = idx;

            return 0;

        } else

            idx++;

    } while (idx < rbufsize);

    av_log(s, AV_LOG_ERROR, "Message too long\n");

    return AVERROR(EIO);

}

static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize,

                            int *rbuflen)

{

    RTSPState *rt = s->priv_data;

    int idx       = 0;

    int ret       = 0;

    *rbuflen      = 0;



    do {

        ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1);

        if (ret < 0)

            return ret;

        if (rbuf[idx] == '\r') {

            

        } else if (rbuf[idx] == '\n') {

            rbuf[idx] = '\0';

            *rbuflen  = idx;

            return 0;

        } else

            idx++;

    } while (idx < rbufsize);

    av_log(s, AV_LOG_ERROR, "Message too long\n");

    return AVERROR(EIO);

}

        if (ret < 0)             return ret;
static inline int FUNC_0(AVFormatContext *VAR_0, char *VAR_1, const int VAR_2,

                            int *VAR_3)

{

    RTSPState *rt = VAR_0->priv_data;

    int VAR_4       = 0;

    int VAR_5       = 0;

    *VAR_3      = 0;



    do {

        VAR_5 = ffurl_read_complete(rt->rtsp_hd, VAR_1 + VAR_4, 1);

        if (VAR_5 < 0)

            return VAR_5;

        if (VAR_1[VAR_4] == '\r') {

            

        } else if (VAR_1[VAR_4] == '\n') {

            VAR_1[VAR_4] = '\0';

            *VAR_3  = VAR_4;

            return 0;

        } else

            VAR_4++;

    } while (VAR_4 < VAR_2);

    av_log(VAR_0, AV_LOG_ERROR, "Message too long\n");

    return AVERROR(EIO);

}

static inline int FUNC_0(AVFormatContext *VAR_0, char *VAR_1, const int VAR_2,
int *VAR_3)
{ RTSPState *rt = VAR_0->priv_data; int VAR_4       = 0; int VAR_5       = 0; *VAR_3      = 0; do { VAR_5 = ffurl_read_complete(rt->rtsp_hd, VAR_1 + VAR_4, 1); if (VAR_5 < 0)
return VAR_5; if (VAR_1[VAR_4] == '\r') { } else if (VAR_1[VAR_4] == '\n') { VAR_1[VAR_4] = '\0'; *VAR_3  = VAR_4; return 0; } else VAR_4++; } while (VAR_4 < VAR_2); av_log(VAR_0, AV_LOG_ERROR, "Message too long\n"); return AVERROR(EIO); }