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.
This commit is contained in:
Clément Bœsch
2012-08-09 00:49:27 +02:00
parent 5d8e54fe1d
commit cc650cf029
23 changed files with 29 additions and 87 deletions
+1 -3
View File
@@ -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);