ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Fri Jul 25 
21:29:43 2014 +0200| [24327706e173c86ad7738dd9c21f214cc78cd8d1] | committer: 
Michael Niedermayer

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

Fixes use of uninitialized memory

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24327706e173c86ad7738dd9c21f214cc78cd8d1
---

 libavutil/opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index c1ca4a8..2a06eb6 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];

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to