From 214019ed3238f020757bdcff7bbb0cbd61e77a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 8 Oct 2006 14:32:27 +0000 Subject: [PATCH] Avoid void *-arithmetic Originally committed as revision 6590 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/lzo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c index 9729f99584..015c80d0d7 100644 --- a/libavcodec/lzo.c +++ b/libavcodec/lzo.c @@ -166,9 +166,9 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { int x; LZOContext c; c.in = in; - c.in_end = in + *inlen; + c.in_end = (uint8_t *)in + *inlen; c.out = c.out_start = out; - c.out_end = out + * outlen; + c.out_end = (uint8_t *)out + * outlen; c.error = 0; x = get_byte(&c); if (x > 17) {