Skip to content

Commit

Permalink
webp: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Feb 23, 2015
1 parent 4af381c commit 3d5dd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _webp.c
Expand Up @@ -136,7 +136,7 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args)
PyObject* WebPDecode_wrapper(PyObject* self, PyObject* args)
{
PyBytesObject *webp_string;
uint8_t *webp;
const uint8_t *webp;
Py_ssize_t size;
PyObject *ret, *bytes, *pymode, *icc_profile = Py_None, *exif = Py_None;
WebPDecoderConfig config;
Expand Down Expand Up @@ -174,7 +174,7 @@ PyObject* WebPDecode_wrapper(PyObject* self, PyObject* args)

WebPMux* mux = WebPMuxCreate(&data, copy_data);
WebPMuxGetFrame(mux, 1, &image);
webp = (uint8_t*)image.bitstream.bytes;
webp = image.bitstream.bytes;
size = image.bitstream.size;

vp8_status_code = WebPDecode(webp, size, &config);
Expand Down

0 comments on commit 3d5dd3b

Please sign in to comment.