mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
lzo: fix memcpy_backptr() with 0 offset
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1858a5c25e
commit
58c41799ab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user