From cc650cf029d8a2aa3c245b014363db673fd2d722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 9 Aug 2012 00:49:27 +0200 Subject: Remove "Error parsing options string [...]" messages. This reduces from 3 to 2 messages for the same syntax error in ffprobe, and from 4 to 3 in filters. --- libavfilter/vsrc_life.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavfilter/vsrc_life.c') diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c index c71291f271..b2b7c4a87d 100644 --- a/libavfilter/vsrc_life.c +++ b/libavfilter/vsrc_life.c @@ -228,10 +228,8 @@ static int init(AVFilterContext *ctx, const char *args) life->class = &life_class; av_opt_set_defaults(life); - if ((ret = av_set_options_string(life, args, "=", ":")) < 0) { - av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args); + if ((ret = av_set_options_string(life, args, "=", ":")) < 0) return ret; - } if ((ret = av_parse_video_rate(&frame_rate, life->rate)) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", life->rate); -- cgit v1.2.3