adjusted terminate_stream to shallow copy between two bitstreams

This commit is contained in:
Gregor Weiss 2024-10-15 17:58:21 +02:00
parent 60b5c6c80a
commit ae7d48c458
Signed by: Gregor Weiss
GPG key ID: 61E170A8BBFE5756

View file

@ -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
{