Commit ee910aef authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '61335ab3' into release/2.4

* commit '61335ab3':
  opt: check memory allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents cdf37f25 61335ab3
......@@ -150,6 +150,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++);
......
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