mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-14 21:09:55 +02:00
real fix for longjmp warning
the 'volatile' qualifier was at the wrong place Patch by Paul Pluzhnikov Change-Id: I26e6f311a0ccd145de640b3505fe92965389c1d9
This commit is contained in:
@ -213,7 +213,7 @@ int ReadJPEG(FILE* in_file, WebPPicture* const pic, Metadata* const metadata) {
|
||||
int stride, width, height;
|
||||
volatile struct jpeg_decompress_struct dinfo;
|
||||
struct my_error_mgr jerr;
|
||||
volatile uint8_t* rgb = NULL;
|
||||
uint8_t* volatile rgb = NULL;
|
||||
JSAMPROW buffer[1];
|
||||
|
||||
memset((j_decompress_ptr)&dinfo, 0, sizeof(dinfo)); // for setjmp sanity
|
||||
@ -272,11 +272,11 @@ int ReadJPEG(FILE* in_file, WebPPicture* const pic, Metadata* const metadata) {
|
||||
// WebP conversion.
|
||||
pic->width = width;
|
||||
pic->height = height;
|
||||
ok = WebPPictureImportRGB(pic, (const uint8_t*)rgb, stride);
|
||||
ok = WebPPictureImportRGB(pic, rgb, stride);
|
||||
if (!ok) goto Error;
|
||||
|
||||
End:
|
||||
free((void*)rgb);
|
||||
free(rgb);
|
||||
return ok;
|
||||
}
|
||||
#else // !WEBP_HAVE_JPEG
|
||||
|
Reference in New Issue
Block a user