diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-25 21:29:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-25 21:29:43 +0200 |
commit | 24327706e173c86ad7738dd9c21f214cc78cd8d1 (patch) | |
tree | 8727d2a562a9685af9f6c869ec7912dc9fa11369 /libavutil/opt.c | |
parent | aadf5222da51c7a0baf0da3a5d0e1af554203d6c (diff) | |
download | ffmpeg-24327706e173c86ad7738dd9c21f214cc78cd8d1.tar.gz |
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>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index c1ca4a817b..2a06eb6f39 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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]; |