diff --git a/src/webm_stream.rs b/src/webm_stream.rs index 5bf7b25..8d3ee45 100644 --- a/src/webm_stream.rs +++ b/src/webm_stream.rs @@ -34,7 +34,7 @@ impl, S: Stream> WebmBuffer { return Ok(Async::NotReady); }, Ok(Some((element, element_size))) => { - self.last_read += element_size; + self.last_read = element_size; return Ok(Async::Ready(Some(element))) } };