[FFmpeg-devel] [PATCH 5/5] avformat/mov: reindent after previous commit

Clément Bœsch u at pkh.me
Sat Feb 19 01:20:01 EET 2022


---
 libavformat/mov.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 919dd940c0..09cc4e8ad7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -8570,12 +8570,12 @@ static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp,
         return ret;
 
     for (;;) {
-    sample = av_index_search_timestamp(st, timestamp, flags);
-    av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
-    if (sample < 0 && sti->nb_index_entries && timestamp < sti->index_entries[0].timestamp)
-        sample = 0;
-    if (sample < 0) /* not sure what to do */
-        return AVERROR_INVALIDDATA;
+        sample = av_index_search_timestamp(st, timestamp, flags);
+        av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
+        if (sample < 0 && sti->nb_index_entries && timestamp < sti->index_entries[0].timestamp)
+            sample = 0;
+        if (sample < 0) /* not sure what to do */
+            return AVERROR_INVALIDDATA;
 
         if (!sample || can_seek_to_key_sample(st, sample, timestamp))
             break;
-- 
2.35.1



More information about the ffmpeg-devel mailing list