aboutsummaryrefslogtreecommitdiff
path: root/evc/src/header.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/header.rs')
-rw-r--r--evc/src/header.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/evc/src/header.rs b/evc/src/header.rs
index e5f008d..923e8ff 100644
--- a/evc/src/header.rs
+++ b/evc/src/header.rs
@@ -15,9 +15,10 @@ impl Ser for Header {
fn read(source: &mut impl std::io::Read) -> std::io::Result<Self> {
source.get::<[u8; 4]>()?;
+ let (resolution, frame_count) = source.get()?;
Ok(Self {
- resolution: source.get()?,
- frame_count: source.get()?,
+ resolution,
+ frame_count,
})
}
}