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
@mayeut I agree. And yes, the code works fine on windows, but I find the path names are confusing when debugging under windows: a mix of forward and backward slashes. Also, this fix is already partially implemented in opj_decompress; just need to add it in a few more places. A 10 minute fix.
In these lines:
sprintf(infilename,"%s/%s",img_fol->imgdirpath,image_filename);
and
sprintf(outfilename,"%s/%s.%s",img_fol->imgdirpath,temp_ofname,img_fol->out_format);
use the following code to replace hard coded separator:
#ifdef _WIN32
const char* path_separator = "\\";
#else
const char* path_separator = "/";
#endif
The text was updated successfully, but these errors were encountered: