diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-10-08 14:32:27 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-10-08 14:32:27 +0000 |
commit | 214019ed3238f020757bdcff7bbb0cbd61e77a12 (patch) | |
tree | 260fbbcbadf7f27e0c2f61b0dcbbc375e9b6f52c /libavcodec/lzo.c | |
parent | 76808d6e7ef6d56440b6b773706d6254c9e161fe (diff) | |
download | ffmpeg-214019ed3238f020757bdcff7bbb0cbd61e77a12.tar.gz |
Avoid void *-arithmetic
Originally committed as revision 6590 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lzo.c')
-rw-r--r-- | libavcodec/lzo.c | 4 |
1 files 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) { |