diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-27 14:13:15 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-03-14 15:12:13 +0100 |
commit | 74e292a3556b7f06e52c2a898726bb3d927fc8cc (patch) | |
tree | 1a26e964eea3597ffa9184e5384cdce4225d3910 | |
parent | c94bd9d748566876fcd13b1cde5296bb9c1c1af8 (diff) |
lavfi/framesync: reindent after previous commit
-rw-r--r-- | libavfilter/framesync.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c index 74c00f8e0a..6e628af647 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -368,35 +368,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; } |