mirror of https://github.com/google/brotli
Merge pull request #1104 from hyperxpro:encode-fix
PiperOrigin-RevId: 595388650
This commit is contained in:
commit
0ef82f0c0d
|
@ -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