Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/zstdruby/zstdruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static VALUE decode_one_frame(ZSTD_DCtx* dctx, const unsigned char* src, size_t
for (;;) {
ZSTD_outBuffer o = (ZSTD_outBuffer){ buf, cap, 0 };
size_t const in_pos_before = in.pos;
size_t ret = ZSTD_decompressStream(dctx, &o, &in);
size_t ret = zstd_stream_decompress(dctx, &o, &in, false);
if (ZSTD_isError(ret)) {
xfree(buf);
rb_raise(rb_eRuntimeError, "ZSTD_decompressStream failed: %s", ZSTD_getErrorName(ret));
Expand Down