From 39a6f69f2324b89d17d7200905a9737d057c0d7e Mon Sep 17 00:00:00 2001 From: James Duran <31216138+JamesDSource@users.noreply.github.com> Date: Wed, 14 Dec 2022 13:29:03 +0000 Subject: [PATCH] Input: Fix read position after seek restart (#154) --- src/input/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/mod.rs b/src/input/mod.rs index af3e4c5a9..be0cb027f 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -376,6 +376,7 @@ impl Seek for Input { SeekFrom::Start(self.container.input_start() as u64), )?; + self.pos = 0; self.cheap_consume(target) }) .map(|_| self.pos as u64)