This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
av_memcpy_backptr: avoid an infinite loop for back = 0
CC:libav-stable@libav.org
tags/n1.2
Anton Khirnov
12 years ago
parent
8097fc9a2d
commit
f935aca44c
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
libavutil/mem.c
+ 3
- 0
libavutil/mem.c
View File
@@ -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) {
Write
Preview
Loading…
Cancel
Save