diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-31 20:57:30 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-31 20:57:30 +0000 |
commit | 56f8647aaad920397c4e27728720fca6fd43c56d (patch) | |
tree | 21a2cce07e3021b90db4ad1fe312c8def7153a72 /libavcodec/lzo.c | |
parent | 9b2c14df60bbd73c38774e3a0d3f63f99a6be465 (diff) | |
download | ffmpeg-56f8647aaad920397c4e27728720fca6fd43c56d.tar.gz |
Remove boundary checks that are actually done "well enough"
in copy function
Originally committed as revision 7786 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lzo.c')
-rw-r--r-- | libavcodec/lzo.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c index ec919c2a95..c78e1f364c 100644 --- a/libavcodec/lzo.c +++ b/libavcodec/lzo.c @@ -213,10 +213,6 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { cnt = get_len(&c, x, 15); copy(&c, cnt + 3); x = GETB(c); - if (c.in > c.in_end) { - c.error |= LZO_INPUT_DEPLETED; - continue; - } if (x > 15) continue; cnt = 1; @@ -228,11 +224,8 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { copy_backptr(&c, back, cnt + 2); state= cnt = x & 3; - if (cnt) - copy(&c, cnt); + copy(&c, cnt); x = GETB(c); - if (c.in > c.in_end) - c.error |= LZO_INPUT_DEPLETED; } *inlen = c.in_end - c.in; if (c.in > c.in_end) |