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
opt: check memory allocation
CC:
libav-stable@libav.org
Bug-Id: CID 1257771
tags/n2.6
Vittorio Giovara
11 years ago
parent
46808fdf04
commit
07a0c0f000
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavutil/opt.c
+ 2
- 0
libavutil/opt.c
View File
@@ -119,6 +119,8 @@ static int set_string_binary(void *obj, const AVOption *o, const char *val, uint
len /= 2;
ptr = bin = av_malloc(len);
if (!ptr)
return AVERROR(ENOMEM);
while (*val) {
int a = hexchar2int(*val++);
int b = hexchar2int(*val++);
Write
Preview
Loading…
Cancel
Save