static int check_output_constraints(InputStream *ist, OutputStream *ost)

{

    OutputFile *of = output_files[ost->file_index];

    int ist_index  = input_files[ist->file_index]->ist_index + ist->st->index;



    if (ost->source_index != ist_index)

        return 0;



    if (of->start_time && ist->pts < of->start_time)

        return 0;



    if (of->recording_time != INT64_MAX &&

        av_compare_ts(ist->pts, AV_TIME_BASE_Q, of->recording_time + of->start_time,

                      (AVRational){ 1, 1000000 }) >= 0) {

        ost->is_past_recording_time = 1;

        return 0;

    }



    return 1;

}

static int check_output_constraints(InputStream *ist, OutputStream *ost)

{

    OutputFile *of = output_files[ost->file_index];

    int ist_index  = input_files[ist->file_index]->ist_index + ist->st->index;



    if (ost->source_index != ist_index)

        return 0;



    if (of->start_time && ist->pts < of->start_time)

        return 0;



    if (of->recording_time != INT64_MAX &&

        av_compare_ts(ist->pts, AV_TIME_BASE_Q, of->recording_time + of->start_time,

                      (AVRational){ 1, 1000000 }) >= 0) {

        ost->is_past_recording_time = 1;

        return 0;

    }



    return 1;

}

static int FUNC_0(InputStream *VAR_0, OutputStream *VAR_1)

{

    OutputFile *of = output_files[VAR_1->file_index];

    int VAR_2  = input_files[VAR_0->file_index]->VAR_2 + VAR_0->st->index;



    if (VAR_1->source_index != VAR_2)

        return 0;



    if (of->start_time && VAR_0->pts < of->start_time)

        return 0;



    if (of->recording_time != INT64_MAX &&

        av_compare_ts(VAR_0->pts, AV_TIME_BASE_Q, of->recording_time + of->start_time,

                      (AVRational){ 1, 1000000 }) >= 0) {

        VAR_1->is_past_recording_time = 1;

        return 0;

    }



    return 1;

}

static int FUNC_0(InputStream *VAR_0, OutputStream *VAR_1)
{ OutputFile *of = output_files[VAR_1->file_index]; int VAR_2  = input_files[VAR_0->file_index]->VAR_2 + VAR_0->st->index; if (VAR_1->source_index != VAR_2)
return 0; if (of->start_time && VAR_0->pts < of->start_time)
return 0; if (of->recording_time != INT64_MAX &&
av_compare_ts(VAR_0->pts, AV_TIME_BASE_Q, of->recording_time + of->start_time,
(AVRational){ 1, 1000000 }) >= 0) { VAR_1->is_past_recording_time = 1; return 0; } return 1; }