Skip to content

Commit 7f15b7c

Browse files
FreezyLemonLuni-4
authored andcommitted
Fix bug in skip_element
1 parent c2918a3 commit 7f15b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ebml/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn void(input: &[u8]) -> EbmlResult<&[u8]> {
156156
pub fn skip_element(input: &[u8]) -> EbmlResult<u32> {
157157
let (i, (id, size, crc)) = tuple((vid, elem_size, crc))(input)?;
158158
let size = if crc.is_some() { size - 6 } else { size };
159-
checksum(crc, take(size))(i)?;
159+
let (i, _) = checksum(crc, take(size))(i)?;
160160
Ok((i, id))
161161
}
162162

0 commit comments

Comments
 (0)