Skip to content

Commit

Permalink
Fix level
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist authored Aug 21, 2024
1 parent 98738b3 commit 55b225f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.zig
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ pub const Encoder = struct {

pub fn compressStream(encoder : *Encoder, streamWriter : std.io.AnyWriter, src : []const u8) !void {
const pref = Frame.Preferences{
.compressionLevel = 0,
.compressionLevel = encoder.level,
.frameInfo = .{
.blockSizeID = @intFromEnum(encoder.blockSize),
.blockMode = @intFromEnum(encoder.blockMode),
Expand Down

0 comments on commit 55b225f

Please sign in to comment.