aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-25 21:29:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-25 21:29:43 +0200
commit24327706e173c86ad7738dd9c21f214cc78cd8d1 (patch)
tree8727d2a562a9685af9f6c869ec7912dc9fa11369 /libavutil/opt.c
parentaadf5222da51c7a0baf0da3a5d0e1af554203d6c (diff)
downloadffmpeg-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.c2
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];