diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-03-04 17:49:52 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-25 13:57:00 +0200 |
commit | 65fb26d988022b0f2fbc94f09fad521fd1db12bd (patch) | |
tree | 3eeed62bbf35aec8a07620a72f405ab0f8787b4e | |
parent | a646629ef4158d1fc65b2490fd147696f46bc4f2 (diff) |
cfhd: Convert some int variables to unsigned
This avoids some signed vs. unsigned warnings with -Wsign-compare.
-rw-r--r-- | libavcodec/cfhd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 28bb96c1da..382ed7b16e 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -146,7 +146,7 @@ static void vert_filter(int16_t *output, ptrdiff_t out_stride, static void free_buffers(AVCodecContext *avctx) { CFHDContext *s = avctx->priv_data; - int i; + unsigned i; for (i = 0; i < FF_ARRAY_ELEMS(s->plane); i++) { av_freep(&s->plane[i].idwt_buf); @@ -159,7 +159,8 @@ static void free_buffers(AVCodecContext *avctx) static int alloc_buffers(AVCodecContext *avctx) { CFHDContext *s = avctx->priv_data; - int i, j, k, ret, planes; + int i, j, ret, planes; + unsigned k; if ((ret = ff_set_dimensions(avctx, s->coded_width, s->coded_height)) < 0) return ret; @@ -489,7 +490,8 @@ static int read_highpass_coeffs(AVCodecContext *avctx, CFHDContext *s, int expected = highpass_height * highpass_stride; int a_expected = highpass_a_height * highpass_a_width; int level, run, coeff; - int count = 0, bytes; + int count = 0; + unsigned bytes; if (highpass_height > highpass_a_height || highpass_width > highpass_a_width || |