void-packages/srcpkgs/mupdf/patches/mupdf-1.5-openjpeg-2.1.patch
2015-12-02 13:31:42 +01:00

11 lines
435 B
Diff

--- source/fitz/load-jpx.c
+++ source/fitz/load-jpx.c
@@ -116,7 +116,7 @@
opj_stream_set_read_function(stream, fz_opj_stream_read);
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
- opj_stream_set_user_data(stream, &sb);
+ opj_stream_set_user_data(stream, &sb, NULL);
/* Set the length to avoid an assert */
opj_stream_set_user_data_length(stream, size);