@@ -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):