mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user