server/mjpeg_encoder: use size_t * consistently

fix another 64 bit-ism. unsigned long != size_t in general.
This commit is contained in:
Alon Levy 2011-11-10 16:29:13 +02:00
parent 6d89b2ba4c
commit 2548cd713d

View File

@ -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 */