You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to large file support implementation,
it is unsafe to have FILE* in openjpeg.h
The library is now compiled with LFS when it is available (it will be hard to find
a system without this support).
This involves activating some flags in the hidden opj_config.h, which modify the behaviour
of system header.
From the application point of view, if the application code is not compiled with LFS,
then fopen returns a FILE* which is incompatible with the internal fseek/ftell used
inside openjpeg library.
Forcing application code to be compiled with LFS is probably not an option.
Too risky...
3 public functions are incriminated :
opj_stream_create_default_file_stream (FILE * p_file, opj_bool p_is_read_stream)
opj_stream_create_file_stream (FILE * p_file, OPJ_UINT32 p_buffer_size, opj_bool p_is_read_stream)
opj_dump_codec( opj_codec_t *p_codec,OPJ_INT32 info_flag,FILE* output_stream)
They should take "const char*" and do the fopen/fclose internally.
Originally reported on Google Code with ID 120
Reported by julienmalik on 2012-02-16 11:02:55
The text was updated successfully, but these errors were encountered: