aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2016-09-21 15:51:54 +0200
committerGitHub <noreply@github.com>2016-09-21 15:51:54 +0200
commit7cbdb4aa0c321b27d360acb462854ef023c7ba20 (patch)
tree0e326c0a201632eb90aac2ed4bde57eeb5da3bbf /python
parentde1007f05a8d2efd5e33e80cb4ef4793e7c63c4e (diff)
downloadbrotli-7cbdb4aa0c321b27d360acb462854ef023c7ba20.zip
brotli-7cbdb4aa0c321b27d360acb462854ef023c7ba20.tar.gz
brotli-7cbdb4aa0c321b27d360acb462854ef023c7ba20.tar.bz2
Update brotlimodule.cc
Diffstat (limited to 'python')
-rw-r--r--python/brotlimodule.cc5
1 files 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);