Mercurial > libavcodec.hg
changeset 9641:04d77f7cc7fd libavcodec
Make av_set_string3() print a message in case of unknown option.
author | stefano |
---|---|
date | Thu, 14 May 2009 18:50:58 +0000 |
parents | 854368240f7d |
children | d706b300b89f |
files | opt.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/opt.c Thu May 14 18:43:43 2009 +0000 +++ b/opt.c Thu May 14 18:50:58 2009 +0000 @@ -112,8 +112,10 @@ 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);