commit | b90cd5df43b4112e5ea7ecb4b3d5d36a7545e51f | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@chromium.org> | Sat Jun 29 23:10:59 2024 +0900 |
committer | Alexandre Courbot <acourbot@chromium.org> | Sat Jun 29 23:15:42 2024 +0900 |
tree | d81a8aa578afccff218a583501bcda05ebc14a52 | |
parent | 437a86c3b71aeb216c3e4b2d721875d7409ff951 [diff] |
utils/IvfIterator: fix expected header length A header is made of a u64 and u32 and is thus 12 bytes.
diff --git a/src/utils.rs b/src/utils.rs index 2040a66..8cee243 100644 --- a/src/utils.rs +++ b/src/utils.rs
@@ -54,7 +54,7 @@ fn next(&mut self) -> Option<Self::Item> { // Make sure we have a header. - if self.cursor.remaining() < 6 { + if self.cursor.remaining() < 12 { return None; }