SDL_image
SDL_image copied to clipboard
Factor out the parts of IMG_LoadJPG_RW where locals can be clobbered by setjmp()/longjmp()
Ideally the libjpeg loading path should have an equivalent of #418 and https://github.com/libsdl-org/SDL_image/commit/f98f0bcd9b35ba6c2f77db042cc056d245be81c6.
(Originally requested by @sezero in https://github.com/libsdl-org/SDL_image/pull/431#issuecomment-1989322714)