[SCM] libav/experimental: Make av_set_string3() print a message in case of unknown option.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:45:49 UTC 2013


The following commit has been merged in the experimental branch:
commit be1fb76fa11b0897d326782ddfb06624105a64bf
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Thu May 14 18:50:58 2009 +0000

    Make av_set_string3() print a message in case of unknown option.
    
    Originally committed as revision 18826 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index a6abcfc..c721829 100644
--- a/libavcodec/opt.c
+++ b/libavcodec/opt.c
@@ -112,8 +112,10 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
     const AVOption *o= av_find_opt(obj, name, NULL, 0, 0);
     if (o_out)
         *o_out = o;
-    if(!o)
+    if(!o) {
+        av_log(obj, AV_LOG_ERROR, "Unknown option '%s'\n", name);
         return AVERROR(ENOENT);
+    }
     if(!val || o->offset<=0)
         return AVERROR(EINVAL);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list