mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Merge commit '07a0c0f000'
* commit '07a0c0f000':
opt: check memory allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b20e79dbe9
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,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++);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue