From 6a9932d614efabe2d62e2ebe96df28cf1019c038 Mon Sep 17 00:00:00 2001 From: Frederic Langlet Date: Sat, 14 Sep 2024 16:36:28 -0700 Subject: [PATCH] Fix variable used in computation --- v2/bitstream/DefaultInputBitStream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/bitstream/DefaultInputBitStream.go b/v2/bitstream/DefaultInputBitStream.go index 591d2b9f..d0c3abd0 100644 --- a/v2/bitstream/DefaultInputBitStream.go +++ b/v2/bitstream/DefaultInputBitStream.go @@ -217,7 +217,7 @@ func (this *DefaultInputBitStream) readFromInputStream(count int) (int, error) { return 0, nil } - this.read += int64((this.maxPosition + 1) << 3) + this.read += int64(this.position << 3) size, err := this.is.Read(this.buffer[0:count]) this.position = 0