static int ftp_flush_control_input(FTPContext *s)

{

    char buf[CONTROL_BUFFER_SIZE];

    int err, ori_block_flag = s->conn_control_block_flag;



    s->conn_control_block_flag = 1;

    do {

        err = ftp_get_line(s, buf, sizeof(buf));

    } while (!err);



    s->conn_control_block_flag = ori_block_flag;



    if (err < 0 && err != AVERROR_EXIT)

        return err;



    return 0;

}

static int ftp_flush_control_input(FTPContext *s)

{

    char buf[CONTROL_BUFFER_SIZE];

    int err, ori_block_flag = s->conn_control_block_flag;



    s->conn_control_block_flag = 1;

    do {

        err = ftp_get_line(s, buf, sizeof(buf));

    } while (!err);



    s->conn_control_block_flag = ori_block_flag;



    if (err < 0 && err != AVERROR_EXIT)

        return err;



    return 0;

}

static int FUNC_0(FTPContext *VAR_0)

{

    char VAR_1[CONTROL_BUFFER_SIZE];

    int VAR_2, VAR_3 = VAR_0->conn_control_block_flag;



    VAR_0->conn_control_block_flag = 1;

    do {

        VAR_2 = ftp_get_line(VAR_0, VAR_1, sizeof(VAR_1));

    } while (!VAR_2);



    VAR_0->conn_control_block_flag = VAR_3;



    if (VAR_2 < 0 && VAR_2 != AVERROR_EXIT)

        return VAR_2;



    return 0;

}

static int FUNC_0(FTPContext *VAR_0)
{ char VAR_1[CONTROL_BUFFER_SIZE]; int VAR_2, VAR_3 = VAR_0->conn_control_block_flag; VAR_0->conn_control_block_flag = 1; do { VAR_2 = ftp_get_line(VAR_0, VAR_1, sizeof(VAR_1)); } while (!VAR_2); VAR_0->conn_control_block_flag = VAR_3; if (VAR_2 < 0 && VAR_2 != AVERROR_EXIT)
return VAR_2; return 0; }