Game Development Community

JPEGs crashing on Mac

by Igor G · in Torque Game Engine · 01/01/2008 (11:48 am) · 1 replies

Hi,

I'm using TGE 1.5.2 and building on Mac. I am encountering some crashes in the ljpeg library when reading certain jpegs from my application. After some experimentation, I realized that the format of the JPEG was causing the crash.

JPEGs saved with progressive scan compression does not work in Mac, but works in my Windows and Linux builds. JPEGs saved with the baseline standard compression works across all platforms.

Does anybody know why this is?

Thanks.

#1
07/31/2009 (6:11 pm)
I know this is old but in case someone is searching on this issue. I just fixed this in our Mac build. The XCode project is using the jmemansi.c file but both the Windows and Linux versions are using jmemnobs.c. Take the ANSI version out and replace it with the nobs version. Should run fine after.