[PATCH 2/4] Silence logging when evaluating the expression for buf in av_set_string3().

Stefano Sabatini stefano.sabatini-lala
Tue May 18 00:31:01 CEST 2010


---
 libavcodec/opt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index 5b56bc8..844c0ec 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -155,7 +155,9 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
                 buf[i]= val[i];
             buf[i]=0;
 
+            av_set_int(obj, "log_level_offset", AV_LOG_DEBUG - AV_LOG_QUIET);
             d = ff_parse_and_eval_expr(buf, const_names, const_values, NULL, NULL, NULL, NULL, NULL, obj);
+            av_set_int(obj, "log_level_offset", 0);
             if(isnan(d)) {
                 const AVOption *o_named= av_find_opt(obj, buf, o->unit, 0, 0);
                 if(o_named && o_named->type == FF_OPT_TYPE_CONST)
-- 
1.7.0


--d6Gm4EdcadzBjdND
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0003-Make-av_set_string3-check-the-list-of-named-constant.patch"




More information about the ffmpeg-devel mailing list