Commit f935aca4 authored by Anton Khirnov's avatar Anton Khirnov

av_memcpy_backptr: avoid an infinite loop for back = 0

CC:libav-stable@libav.org
parent 8097fc9a
......@@ -252,6 +252,9 @@ static void fill32(uint8_t *dst, int len)
void av_memcpy_backptr(uint8_t *dst, int back, int cnt)
{
const uint8_t *src = &dst[-back];
if (!back)
return;
if (back == 1) {
memset(dst, *src, cnt);
} else if (back == 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment