205 is 0xCD, that is the standard value put by VS in debug mode in unitialized memory, so I think that your cinfo
was not initialized properly at the moment you've called the decoder. Post the code when you use it.
Also, the setjump()
you're using make me think it's IJG library. Be careful with it because it's not a standard function. It remembers the exact state of the thread and stack when you've made the call and is able to return to that position from anywhere, except cases when this state is not valid anymore, as in:
int init_fn(){
if (setjump(my_state)){
// ERROR!
};
return 0;
};
int decode(){
init_fn();
do_work();
};
here the saved state is not valid at the time you call the actual decoder. For MT case you have to call the setjump()
from the same thread as longjmp()
.