Skip to content

Commit

Permalink
Update Encoder.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro authored Dec 28, 2023
1 parent 0907a38 commit c2a5252
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static byte[] compress(byte[] data, int offset, int length, Parameters pa
int totalOutputSize = 0;
try {
encoder.getInputBuffer().put(data, offset, length);
encoder.push(EncoderJNI.Operation.FINISH, data.length);
encoder.push(EncoderJNI.Operation.FINISH, length);
while (true) {
if (!encoder.isSuccess()) {
throw new IOException("encoding failed");
Expand Down

0 comments on commit c2a5252

Please sign in to comment.