[vlc-commits] jpeg: avoid a cast

Rafaël Carré git at videolan.org
Tue Jan 28 15:46:01 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jan 28 11:05:02 2014 +0100| [d5ec2e9fc700ffeceb3151885f438cd23ce1325e] | committer: Rafaël Carré

jpeg: avoid a cast

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5ec2e9fc700ffeceb3151885f438cd23ce1325e
---

 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 32964cc..ad09d56 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -180,7 +180,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_jpeg.output_height; i++) {
         p_row_pointers[i] = p_pic->p->p_pixels + p_pic->p->i_pitch * i;
     }
 



More information about the vlc-commits mailing list