Commit 24327706 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/opt: ensure the right buffer is used in set_string_number()

Fixes use of uninitialized memory
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent aadf5222
......@@ -206,7 +206,7 @@ static int set_string_number(void *obj, void *target_obj, const AVOption *o, con
}
{
const AVOption *o_named = av_opt_find(target_obj, buf, o->unit, 0, 0);
const AVOption *o_named = av_opt_find(target_obj, i ? buf : val, o->unit, 0, 0);
int res;
int ci = 0;
double const_values[64];
......
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