Skip to content

Commit

Permalink
Fix bug in skip_element
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and Luni-4 committed Apr 27, 2023
1 parent c2918a3 commit 7f15b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ebml/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pub fn void(input: &[u8]) -> EbmlResult<&[u8]> {
pub fn skip_element(input: &[u8]) -> EbmlResult<u32> {
let (i, (id, size, crc)) = tuple((vid, elem_size, crc))(input)?;
let size = if crc.is_some() { size - 6 } else { size };
checksum(crc, take(size))(i)?;
let (i, _) = checksum(crc, take(size))(i)?;
Ok((i, id))
}

Expand Down

0 comments on commit 7f15b7c

Please sign in to comment.