[FFmpeg-cvslog] r18826 - trunk/libavcodec/opt.c
stefano
subversion
Thu May 14 20:50:58 CEST 2009
Author: stefano
Date: Thu May 14 20:50:58 2009
New Revision: 18826
Log:
Make av_set_string3() print a message in case of unknown option.
Modified:
trunk/libavcodec/opt.c
Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c Thu May 14 20:43:43 2009 (r18825)
+++ trunk/libavcodec/opt.c Thu May 14 20:50:58 2009 (r18826)
@@ -112,8 +112,10 @@ int av_set_string3(void *obj, const char
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);
More information about the ffmpeg-cvslog
mailing list