Commit 7ddf082f authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/testsrc: drop pointless parentheses

parent 2702e384
......@@ -94,7 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
}
av_freep(&test->rate);
if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
if (test->duration && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment