Lines Matching defs:ifile
3301 InputFile *ifile = input_files[i];
3302 if (ifile->readrate || ifile->rate_emu)
3303 for (j = 0; j < ifile->nb_streams; j++)
3304 input_streams[j + ifile->ist_index]->start = av_gettime_relative();
3339 InputFile *ifile = input_files[i];
3340 for (j = 0; j < ifile->ctx->nb_programs; j++) {
3341 AVProgram *p = ifile->ctx->programs[j];
3345 if (!input_streams[ifile->ist_index + p->stream_index[k]]->discard) {
3829 static int seek_to_start(InputFile *ifile, AVFormatContext *is)
3840 for (i = 0; i < ifile->nb_streams; i++) {
3841 ist = input_streams[ifile->ist_index + i];
3851 for (i = 0; i < ifile->nb_streams; i++) {
3852 ist = input_streams[ifile->ist_index + i];
3872 if (!ifile->duration)
3873 ifile->time_base = ist->st->time_base;
3878 ifile->time_base = duration_max(duration, &ifile->duration, ist->st->time_base,
3879 ifile->time_base);
3882 if (ifile->loop > 0)
3883 ifile->loop--;
3897 InputFile *ifile = input_files[file_index];
3906 is = ifile->ctx;
3907 ret = get_input_packet(ifile, &pkt);
3910 ifile->eagain = 1;
3913 if (ret < 0 && ifile->loop) {
3915 for (i = 0; i < ifile->nb_streams; i++) {
3916 ist = input_streams[ifile->ist_index + i];
3929 ret = seek_to_start(ifile, is);
3938 ret = get_input_packet(ifile, &pkt);
3940 ifile->eagain = 1;
3951 for (i = 0; i < ifile->nb_streams; i++) {
3952 ist = input_streams[ifile->ist_index + i];
3963 if (ost->source_index == ifile->ist_index + i &&
3969 ifile->eof_reached = 1;
3981 if (pkt->stream_index >= ifile->nb_streams) {
3986 ist = input_streams[ifile->ist_index + pkt->stream_index];
4004 ifile->ist_index + pkt->stream_index, av_get_media_type_string(ist->dec_ctx->codec_type),
4020 && ifile->ts_offset == -is->start_time
4031 ifile->ts_offset = -new_start_time;
4070 pkt->dts += av_rescale_q(ifile->ts_offset, AV_TIME_BASE_Q, ist->st->time_base);
4072 pkt->pts += av_rescale_q(ifile->ts_offset, AV_TIME_BASE_Q, ist->st->time_base);
4083 && (is->iformat->flags & AVFMT_TS_DISCONT) && ifile->last_ts != AV_NOPTS_VALUE) {
4084 int64_t delta = pkt_dts - ifile->last_ts;
4087 ifile->ts_offset -= delta;
4090 delta, ifile->ts_offset);
4097 duration = av_rescale_q(ifile->duration, ifile->time_base, ist->st->time_base);
4127 ifile->ts_offset -= delta;
4133 delta, ifile->ts_offset);
4157 ifile->last_ts = av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
4161 ifile->ist_index + pkt->stream_index, av_get_media_type_string(ist->dec_ctx->codec_type),
4175 if (ifile->thread_queue_size)