mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
server/mjpeg_encoder: fix wrong size assigned to dest_len
It should have been the allocated size and not the occupied one. This led to a lot of unnecessary allocations and deallocations.
This commit is contained in:
parent
fecc1e3d4d
commit
c211774422
@ -140,7 +140,7 @@ static void term_mem_destination(j_compress_ptr cinfo)
|
||||
mem_destination_mgr *dest = (mem_destination_mgr *) cinfo->dest;
|
||||
|
||||
*dest->outbuffer = dest->buffer;
|
||||
*dest->outsize = dest->bufsize - dest->pub.free_in_buffer;
|
||||
*dest->outsize = dest->bufsize;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user