From c5a42afd3284aca868bef6b2a197f47c581b08a0 Mon Sep 17 00:00:00 2001 From: Tangent 128 Date: Mon, 2 Apr 2018 20:11:14 -0400 Subject: [PATCH] Fix bug with WebmBuffer double-counting reads --- src/webm_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) } };