From 7cbdb4aa0c321b27d360acb462854ef023c7ba20 Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Wed, 21 Sep 2016 15:51:54 +0200 Subject: [PATCH] Update brotlimodule.cc --- python/brotlimodule.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc index 2fcfaf3..e7b8b77 100644 --- a/python/brotlimodule.cc +++ b/python/brotlimodule.cc @@ -232,9 +232,8 @@ static PyObject* brotli_decompress(PyObject *self, PyObject *args, PyObject *key while (result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) { size_t available_out = kBufferSize; uint8_t* next_out = buffer; - result = BrotliDecoderDecompressStream(&length, &input, - &available_out, &next_out, - 0, state); + result = BrotliDecoderDecompressStream(state, &length, &input, + &available_out, &next_out, 0); size_t used_out = kBufferSize - available_out; if (used_out != 0) output.insert(output.end(), buffer, buffer + used_out);