[vlc-commits] jpeg: use explicit cast for jpeg_mem_dest
Jean-Baptiste Kempf
git at videolan.org
Wed Apr 20 13:35:07 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 20 13:34:13 2016 +0200| [e7abf33e340ea4937fa9d73315d492da428e2c8e] | committer: 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...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7abf33e340ea4937fa9d73315d492da428e2c8e
---
modules/codec/jpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index ca75b27..3b82432 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -573,7 +573,7 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
}
jpeg_create_compress(&p_sys->p_jpeg);
- 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->fmt_in.video.i_visible_width;
p_sys->p_jpeg.image_height = p_enc->fmt_in.video.i_visible_height;
More information about the vlc-commits
mailing list