You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avutil/opt: ensure the right buffer is used in set_string_number()
Fixes use of uninitialized memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user