Lines Matching defs:self
294 InputFile *ref, *self = input_files[i];
299 if (self->input_sync_ref == -1 || self->input_sync_ref == i) continue;
300 if (self->input_sync_ref >= nb_input_files || self->input_sync_ref < -1) {
301 av_log(NULL, AV_LOG_FATAL, "-isync for input %d references non-existent input %d.\n", i, self->input_sync_ref);
310 ref = input_files[self->input_sync_ref];
311 if (ref->input_sync_ref != -1 && ref->input_sync_ref != self->input_sync_ref) {
312 av_log(NULL, AV_LOG_ERROR, "-isync for input %d references a resynced input %d. Sync not set.\n", i, self->input_sync_ref);
316 if (self->ctx->start_time_realtime != AV_NOPTS_VALUE && ref->ctx->start_time_realtime != AV_NOPTS_VALUE) {
317 self_start_time = self->ctx->start_time_realtime;
319 } else if (self->ctx->start_time != AV_NOPTS_VALUE && ref->ctx->start_time != AV_NOPTS_VALUE) {
320 self_start_time = self->ctx->start_time;
327 self_seek_start = self->start_time == AV_NOPTS_VALUE ? 0 : self->start_time;
332 self->ts_offset += adjustment;
334 av_log(NULL, AV_LOG_INFO, "Adjusted ts offset for Input #%d by %"PRId64" us to sync with Input #%d.\n", i, adjustment, self->input_sync_ref);
336 av_log(NULL, AV_LOG_INFO, "Unable to identify start times for Inputs #%d and %d both. No sync adjustment made.\n", i, self->input_sync_ref);