Commit e7abf33e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

jpeg: use explicit cast for jpeg_mem_dest

Of course, some people don't know that long != size_t
I hope your jpegs are smaller than 4GB...
parent 5743000c
......@@ -573,7 +573,7 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
jpeg_mem_dest(&p_sys->p_jpeg, &p_block->p_buffer, &p_block->i_buffer);
jpeg_mem_dest(&p_sys->p_jpeg, &p_block->p_buffer, (long unsigned int *)&p_block->i_buffer);
p_sys->p_jpeg.image_width = p_enc->;
p_sys->p_jpeg.image_height = p_enc->;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment