Jump to content
  • Advertisement
Sign in to follow this  

libjpeg fails on jpeg_create_decompress

This topic is 4417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i've spent three days trying to figure this libjpeg problem out but to no avail. consider the following code that 'attempts' to READ a jpeg file:
  struct jpeg_decompress_struct cinfo;  
  struct jpeg_error_mgr jerr; 
  FILE *fp = fopen("C:\\test.jpg","rb");
  if(!fp) return 1;

  memset(&cinfo, 0, sizeof(cinfo));
  memset(&jerr, 0, sizeof(jerr));
  cinfo.err = jpeg_std_error( &jerr );
  jpeg_create_decompress( &cinfo ); //<-- FAILS HERE
a few facts: 1.) the behavior is when it gets to the jpeg_create_decompress line, the entire program crashes 2.) i can write jpeg files (which uses jpeg_create_compress) with no problems 3.) i have found other threads on this very issue, but no resolution was found in those instances. 4.) my brain feels like mush... you know when you've exhausted every resource and search you can think of and come up with nothing... bleh... 5.) i might be open to other open source jpeg libraries that are free for commercial use. thanks in advance! [Edited by - fluke on November 14, 2006 7:25:36 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!