mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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. Originally committed as revision 20172 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
41770abf86
commit
1fe4abf397
@ -112,10 +112,8 @@ 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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user