diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-08-09 02:49:27 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-09 10:11:00 +0400 |
commit | cc650cf029d8a2aa3c245b014363db673fd2d722 (patch) | |
tree | 19cd52f75fb09d8c11b52e5b83bf66f73acdbfd0 /libavfilter/vsrc_cellauto.c | |
parent | 5d8e54fe1ded58cd2d76c112041f5202ce762aef (diff) |
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.
Diffstat (limited to 'libavfilter/vsrc_cellauto.c')
-rw-r--r-- | libavfilter/vsrc_cellauto.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c index b2c9d5867b..971e1df64b 100644 --- a/libavfilter/vsrc_cellauto.c +++ b/libavfilter/vsrc_cellauto.c @@ -167,10 +167,8 @@ static int init(AVFilterContext *ctx, const char *args) cellauto->class = &cellauto_class; av_opt_set_defaults(cellauto); - if ((ret = av_set_options_string(cellauto, args, "=", ":")) < 0) { - av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args); + if ((ret = av_set_options_string(cellauto, args, "=", ":")) < 0) return ret; - } if ((ret = av_parse_video_rate(&frame_rate, cellauto->rate)) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: %s\n", cellauto->rate); |