Skip to content

Commit

Permalink
Deal with CRC-32 for the top level elements
Browse files Browse the repository at this point in the history
Partially address #10
  • Loading branch information
lu-zero committed Oct 3, 2018
1 parent a7d9446 commit ce4715a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ macro_rules! sub_element(
($i:expr, $parser:ident) => ({
do_parse!($i,
size: vint
>> _crc: opt!(ebml_binary!(0xBF))
>> element: flat_map!(take!(size as usize), $parser)
>> (element)
)
});
($i:expr, $submac:ident!( $($args:tt)* )) => ({
do_parse!($i,
size: vint
>> _crc: opt!(ebml_binary!(0xBF))
>> element: flat_map!(take!(size as usize), $submac!($($args)*))
>> (element)
)
Expand Down

0 comments on commit ce4715a

Please sign in to comment.