[FFmpeg-cvslog] r20172 - trunk/libavcodec/opt.c
michael
subversion
Mon Oct 5 22:18:17 CEST 2009
Author: michael
Date: Mon Oct 5 22:18:16 2009
New Revision: 20172
Log:
Revert:
r18826 | stefano | 2009-05-14 20:50:58 +0200 (Thu, 14 May 2009) | 2 lines
Make av_set_string3() print a message in case of unknown option.
This change led to multiple identical error messages to be printed if an option
was not found.
Modified:
trunk/libavcodec/opt.c
Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c Mon Oct 5 22:10:07 2009 (r20171)
+++ trunk/libavcodec/opt.c Mon Oct 5 22:18:16 2009 (r20172)
@@ -112,10 +112,8 @@ 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) {
- av_log(obj, AV_LOG_ERROR, "Unknown option '%s'\n", name);
+ if(!o)
return AVERROR(ENOENT);
- }
if(!val || o->offset<=0)
return AVERROR(EINVAL);
More information about the ffmpeg-cvslog
mailing list