changeset 10364:917c88a80b67 libavcodec

Revert: r18826 | stefano | 2009-05-14 20:50:58 +0200 (Thu, 14 May 2009) | 2 lines Make av_set_string3() print a message in case of unknown option. This change led to multiple identical error messages to be printed if an option was not found.
author michael
date Mon, 05 Oct 2009 20:18:16 +0000
parents 08573f5f587d
children b44de7b79bee
files opt.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Sun Oct 04 13:13:12 2009 +0000
+++ b/opt.c	Mon Oct 05 20:18:16 2009 +0000
@@ -112,10 +112,8 @@
     const AVOption *o= av_find_opt(obj, name, NULL, 0, 0);
     if (o_out)
         *o_out = o;
-    if(!o) {
-        av_log(obj, AV_LOG_ERROR, "Unknown option '%s'\n", name);
+    if(!o)
         return AVERROR(ENOENT);
-    }
     if(!val || o->offset<=0)
         return AVERROR(EINVAL);