[vlc-devel] [PATCH 3/4] jpeg: avoid a cast

Rafaël Carré funman at videolan.org
Tue Jan 28 11:21:57 CET 2014


---
 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 189211a..0753d63 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -181,7 +181,7 @@ static picture_t *DecodeBlock(decoder_t *p_dec, block_t **pp_block)
     {
         goto error;
     }
-    for (int i = 0; i < (int)p_jpeg.output_height; i++) {
+    for (unsigned i = 0; i < p_sys->p_jpeg.output_height; i++) {
         p_row_pointers[i] = p_pic->p->p_pixels + p_pic->p->i_pitch * i;
     }
 
-- 
1.8.5.3




More information about the vlc-devel mailing list