From ae7d48c4588ac56f302f6db13ab905b45129e6d4 Mon Sep 17 00:00:00 2001 From: Gregor Weiss Date: Tue, 15 Oct 2024 17:58:21 +0200 Subject: [PATCH] adjusted terminate_stream to shallow copy between two bitstreams --- src/interfaces/reader/eas3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interfaces/reader/eas3.c b/src/interfaces/reader/eas3.c index 2631bd9..973b778 100644 --- a/src/interfaces/reader/eas3.c +++ b/src/interfaces/reader/eas3.c @@ -461,7 +461,7 @@ get_chunck(bitstream *const stream, const uint64 size) ! ! \*----------------------------------------------------------------------------------------------------------*/ uchar -terminate_stream(bitstream *stream, bwc_stream *const packed_stream) +terminate_stream(bitstream *stream, bitstream *const packed_stream) { /*-----------------------*\ ! DEFINE ASSERTIONS: ! @@ -491,6 +491,7 @@ terminate_stream(bitstream *stream, bwc_stream *const packed_stream) packed_stream->access = stream->memory; packed_stream->size = stream->L; packed_stream->position = 0; + packed_stream->L = stream->L; } else {