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 {