Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 20, 2024
1 parent 1e13f85 commit dbe85c2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libImaging/Jpeg2KDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,6 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
opj_stream_set_read_function(stream, j2k_read);
opj_stream_set_skip_function(stream, j2k_skip);

/* OpenJPEG 2.0 doesn't have OPJ_VERSION_MAJOR */
#ifndef OPJ_VERSION_MAJOR
opj_stream_set_user_data(stream, state);
#else
opj_stream_set_user_data(stream, state, NULL);

/* Hack: if we don't know the length, the largest file we can
Expand All @@ -683,7 +679,6 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
} else {
opj_stream_set_user_data_length(stream, context->length);
}
#endif

/* Setup decompression context */
context->error_msg = NULL;
Expand Down

0 comments on commit dbe85c2

Please sign in to comment.