diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-24 06:55:58 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-24 21:42:55 +0400 |
commit | 58c41799ab6b52df86b6afe23304f34b62741326 (patch) | |
tree | 543c4a103af6656e8765c555e42ecef89ac4fd2e /libavutil | |
parent | 1858a5c25ee1ccb8089339d20138116a46cc6c77 (diff) |
lzo: fix memcpy_backptr() with 0 offset
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/lzo.c b/libavutil/lzo.c index b3c69cf0c5..0b9d2e42ba 100644 --- a/libavutil/lzo.c +++ b/libavutil/lzo.c @@ -137,7 +137,7 @@ static inline void memcpy_backptr(uint8_t *dst, int back, int cnt) { const uint8_t *src = &dst[-back]; if (back == 1) { memset(dst, *src, cnt); - } else { + } else if(back>0) { #ifdef OUTBUF_PADDED COPY2(dst, src); COPY2(dst + 2, src + 2); |