diff --git a/camlibs/jl2005c/jl2005bcd_decompress.c b/camlibs/jl2005c/jl2005bcd_decompress.c index dff2d6264..63c55c4e9 100644 --- a/camlibs/jl2005c/jl2005bcd_decompress.c +++ b/camlibs/jl2005c/jl2005bcd_decompress.c @@ -85,7 +85,7 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input, struct jpeg_error_mgr jcerr, jderr; JOCTET *jpeg_header = NULL; int outputsize = 0; - unsigned long jpeg_header_size = 0; + uint32_t jpeg_header_size = 0; int i, x, y, x1, y1, jpeg_data_size, jpeg_data_idx, eoi, size, ret; JSAMPLE green[8 * 16]; JSAMPLE red[8 * 8]; diff --git a/camlibs/ptp2/chdk.c b/camlibs/ptp2/chdk.c index 2787a7261..bc966a299 100644 --- a/camlibs/ptp2/chdk.c +++ b/camlibs/ptp2/chdk.c @@ -1145,7 +1145,7 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, struct jpeg_error_mgr jerr; JSAMPROW row_ptr[1]; uint8_t *outbuf = NULL, *tmprowbuf = NULL; - unsigned long outlen = 0; + uint32_t outlen = 0; unsigned int row_inc; int sshift, dshift, xshift, skip;