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:
@@ -62,10 +62,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
|
||||
asns->class = &asetnsamples_class;
|
||||
av_opt_set_defaults(asns);
|
||||
|
||||
if ((err = av_set_options_string(asns, args, "=", ":")) < 0) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Error parsing options string: '%s'\n", args);
|
||||
if ((err = av_set_options_string(asns, args, "=", ":")) < 0)
|
||||
return err;
|
||||
}
|
||||
|
||||
asns->next_out_pts = AV_NOPTS_VALUE;
|
||||
av_log(ctx, AV_LOG_VERBOSE, "nb_out_samples:%d pad:%d\n", asns->nb_out_samples, asns->pad);
|
||||
|
||||
Reference in New Issue
Block a user