mirror of
https://github.com/google/brotli.git
synced 2024-11-09 13:40:06 +00:00
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;
|
int totalOutputSize = 0;
|
||||||
try {
|
try {
|
||||||
encoder.getInputBuffer().put(data, offset, length);
|
encoder.getInputBuffer().put(data, offset, length);
|
||||||
encoder.push(EncoderJNI.Operation.FINISH, data.length);
|
encoder.push(EncoderJNI.Operation.FINISH, length);
|
||||||
while (true) {
|
while (true) {
|
||||||
if (!encoder.isSuccess()) {
|
if (!encoder.isSuccess()) {
|
||||||
throw new IOException("encoding failed");
|
throw new IOException("encoding failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user