Commit 4b42b4ab authored by stefano's avatar stefano

Make av_set_string3() print a message in case of unknown option.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18826 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8b0a1f70
...@@ -112,8 +112,10 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons ...@@ -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); const AVOption *o= av_find_opt(obj, name, NULL, 0, 0);
if (o_out) if (o_out)
*o_out = o; *o_out = o;
if(!o) if(!o) {
av_log(obj, AV_LOG_ERROR, "Unknown option '%s'\n", name);
return AVERROR(ENOENT); return AVERROR(ENOENT);
}
if(!val || o->offset<=0) if(!val || o->offset<=0)
return AVERROR(EINVAL); return AVERROR(EINVAL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment