mirror of
https://github.com/google/brotli.git
synced 2024-11-08 13:20:05 +00:00
Fix Encoder bug
This commit is contained in:
parent
fef82ea104
commit
428d056ddc
@ -227,7 +227,7 @@ public class Encoder {
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user