Mercurial > libavcodec.hg
diff flicvideo.c @ 2422:18b8b2dcc037 libavcodec
various security fixes and precautionary checks
author | michael |
---|---|
date | Wed, 12 Jan 2005 00:16:25 +0000 |
parents | 39ad6cd5d4a6 |
children | faa53103dde0 |
line wrap: on
line diff
--- a/flicvideo.c Tue Jan 11 08:16:04 2005 +0000 +++ b/flicvideo.c Wed Jan 12 00:16:25 2005 +0000 @@ -176,7 +176,7 @@ for (j = 0; j < color_changes; j++) { /* wrap around, for good measure */ - if (palette_ptr >= 256) + if ((unsigned)palette_ptr >= 256) palette_ptr = 0; r = buf[stream_ptr++] << color_shift;