Skip to content
Snippets Groups Projects
Commit 58c41799 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

lzo: fix memcpy_backptr() with 0 offset

parent 1858a5c2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment