[vlc-commits] jpeg: avoid a cast
Rafaël Carré
git at videolan.org
Tue Jan 28 15:42:44 CET 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jan 28 11:05:02 2014 +0100| [e9230bfabf00171036eb61fdb990769270f8317e] | committer: Rafaël Carré
jpeg: avoid a cast
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9230bfabf00171036eb61fdb990769270f8317e
---
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..531be83 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_sys->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