projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50f68bd
)
Make av_set_string3() print a message in case of unknown option.
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Thu, 14 May 2009 18:50:58 +0000
(18:50 +0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Thu, 14 May 2009 18:50:58 +0000
(18:50 +0000)
Originally committed as revision 18826 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
a6abcfc
..
c721829
100644
(file)
--- 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);