mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-14 20:31:17 +00:00
server/mjpeg_encoder: use size_t * consistently
fix another 64 bit-ism. unsigned long != size_t in general.
This commit is contained in:
parent
6d89b2ba4c
commit
2548cd713d
@ -104,7 +104,7 @@ typedef struct {
|
||||
struct jpeg_destination_mgr pub; /* public fields */
|
||||
|
||||
unsigned char ** outbuffer; /* target buffer */
|
||||
unsigned long * outsize;
|
||||
size_t * outsize;
|
||||
unsigned char * newbuffer; /* newly allocated buffer */
|
||||
uint8_t * buffer; /* start of buffer */
|
||||
size_t bufsize;
|
||||
@ -164,7 +164,7 @@ static void term_mem_destination(j_compress_ptr cinfo)
|
||||
|
||||
static void
|
||||
spice_jpeg_mem_dest(j_compress_ptr cinfo,
|
||||
unsigned char ** outbuffer, unsigned long * outsize)
|
||||
unsigned char ** outbuffer, size_t * outsize)
|
||||
{
|
||||
mem_destination_mgr *dest;
|
||||
#define OUTPUT_BUF_SIZE 4096 /* choose an efficiently fwrite'able size */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user