summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-12-10 15:57:47 +0100
committerAnton Khirnov <anton@khirnov.net>2022-12-10 21:39:47 +0100
commit7e3db9f427bd452d9d5cae4a29321296346a853f (patch)
treec008ee555340bd00c80bde65879babc706fa32d2
parentb5ac521a2311a09cbc4a3427d2d77bbd3a99cfd4 (diff)
lavfi/framesync: reindent after previous commitframe_map
-rw-r--r--libavfilter/framesync.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c
index 8d29926000..ae6eee20e6 100644
--- a/libavfilter/framesync.c
+++ b/libavfilter/framesync.c
@@ -402,35 +402,35 @@ static int framesync_advance(FFFrameSync *fs)
}
pts = fs->in[0].pts;
} else {
- pts = INT64_MAX;
- for (i = 0; i < fs->nb_in; i++)
- if (fs->in[i].have_next && fs->in[i].pts_next < pts)
- pts = fs->in[i].pts_next;
- if (pts == INT64_MAX) {
- framesync_eof(fs);
- break;
- }
- for (i = 0; i < fs->nb_in; i++) {
- FFFrameSyncIn * const in = &fs->in[i];
-
- if (in->pts_next == pts ||
- (in->ts_mode == TS_NEAREST && in->have_next &&
- in->pts_next != INT64_MAX && in->pts != AV_NOPTS_VALUE &&
- in->pts_next - pts < pts - in->pts) ||
- (in->before == EXT_INFINITY && in->state == STATE_BOF)) {
- frame_advance(in);
- in->state = in->frame ? STATE_RUN : STATE_EOF;
- if (in->sync == fs->sync_level && in->frame)
- fs->frame_ready = 1;
- if (in->state == STATE_EOF && in->after == EXT_STOP)
- framesync_eof(fs);
- }
- }
- if (fs->frame_ready)
+ pts = INT64_MAX;
for (i = 0; i < fs->nb_in; i++)
- if ((fs->in[i].state == STATE_BOF &&
- fs->in[i].before == EXT_STOP))
- fs->frame_ready = 0;
+ if (fs->in[i].have_next && fs->in[i].pts_next < pts)
+ pts = fs->in[i].pts_next;
+ if (pts == INT64_MAX) {
+ framesync_eof(fs);
+ break;
+ }
+ for (i = 0; i < fs->nb_in; i++) {
+ FFFrameSyncIn * const in = &fs->in[i];
+
+ if (in->pts_next == pts ||
+ (in->ts_mode == TS_NEAREST && in->have_next &&
+ in->pts_next != INT64_MAX && in->pts != AV_NOPTS_VALUE &&
+ in->pts_next - pts < pts - in->pts) ||
+ (in->before == EXT_INFINITY && in->state == STATE_BOF)) {
+ frame_advance(in);
+ in->state = in->frame ? STATE_RUN : STATE_EOF;
+ if (in->sync == fs->sync_level && in->frame)
+ fs->frame_ready = 1;
+ if (in->state == STATE_EOF && in->after == EXT_STOP)
+ framesync_eof(fs);
+ }
+ }
+ if (fs->frame_ready)
+ for (i = 0; i < fs->nb_in; i++)
+ if ((fs->in[i].state == STATE_BOF &&
+ fs->in[i].before == EXT_STOP))
+ fs->frame_ready = 0;
}
fs->pts = pts;
}