diff mbox series

[FFmpeg-devel,v2,09/13] avpriv_find_start_code(): fix indent from previous commit

Message ID 20220203184450.5491-10-scott.the.elm@gmail.com
State New
Headers show
Series rewrite avpriv_find_start_code() for clarity | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Scott Theisen Feb. 3, 2022, 6:44 p.m. UTC
Whitespace change only.  Separate so the previous diff is clearer.
---
 libavcodec/utils.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index da057bad3e..255c133737 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -956,19 +956,19 @@  const uint8_t *avpriv_find_start_code(const uint8_t *av_restrict p,
         p += 3; // offset for negative indices in while loop
     }
     else {
-    if (p >= end)
-        return end;
-
-    // read up to the first three bytes in p to enable reading a start code across
-    // two (to four) buffers
-    for (int i = 0; i < 3; i++) {
-        *start_code <<= 8;
-        *start_code += *p;
-        p++;
-        if (avpriv_start_code_is_valid(*start_code) || p == end)
-            return p;
-    }
-    // p is now properly incremented for the negative indices in the while loop
+        if (p >= end)
+            return end;
+
+        // read up to the first three bytes in p to enable reading a start code across
+        // two (to four) buffers
+        for (int i = 0; i < 3; i++) {
+            *start_code <<= 8;
+            *start_code += *p;
+            p++;
+            if (avpriv_start_code_is_valid(*start_code) || p == end)
+                return p;
+        }
+        // p is now properly incremented for the negative indices in the while loop
     }
 
     /* with memory address increasing left to right, we are looking for (in hexadecimal):