static int open_next_file(AVFormatContext *avf)

{

    ConcatContext *cat = avf->priv_data;

    unsigned fileno = cat->cur_file - cat->files;



    if (cat->cur_file->duration == AV_NOPTS_VALUE)

        cat->cur_file->duration = cat->avf->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time);



    if (++fileno >= cat->nb_files) {

        cat->eof = 1;

        return AVERROR_EOF;

    }

    return open_file(avf, fileno);

}

static int open_next_file(AVFormatContext *avf)

{

    ConcatContext *cat = avf->priv_data;

    unsigned fileno = cat->cur_file - cat->files;



    if (cat->cur_file->duration == AV_NOPTS_VALUE)

        cat->cur_file->duration = cat->avf->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time);



    if (++fileno >= cat->nb_files) {

        cat->eof = 1;

        return AVERROR_EOF;

    }

    return open_file(avf, fileno);

}

static int FUNC_0(AVFormatContext *VAR_0)

{

    ConcatContext *cat = VAR_0->priv_data;

    unsigned VAR_1 = cat->cur_file - cat->files;



    if (cat->cur_file->duration == AV_NOPTS_VALUE)

        cat->cur_file->duration = cat->VAR_0->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time);



    if (++VAR_1 >= cat->nb_files) {

        cat->eof = 1;

        return AVERROR_EOF;

    }

    return open_file(VAR_0, VAR_1);

}

static int FUNC_0(AVFormatContext *VAR_0)
{ ConcatContext *cat = VAR_0->priv_data; unsigned VAR_1 = cat->cur_file - cat->files; if (cat->cur_file->duration == AV_NOPTS_VALUE)
cat->cur_file->duration = cat->VAR_0->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time); if (++VAR_1 >= cat->nb_files) { cat->eof = 1; return AVERROR_EOF; } return open_file(VAR_0, VAR_1); }