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

View File

@@ -100,10 +100,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
av_opt_set_defaults(test);
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
if ((ret = (av_set_options_string(test, args, "=", ":"))) < 0)
return ret;
}
if ((ret = av_parse_video_rate(&frame_rate_q, test->rate)) < 0) {
av_log(ctx, AV_LOG_ERROR, "Invalid frame rate: '%s'\n", test->rate);