testcard2: use parse_fps to allow interlacing

this allows syntax like "59.74i"
This commit is contained in:
Martin Pulec
2023-07-24 08:58:28 +02:00
parent 1579f5fa19
commit 0ce939e5e9

View File

@@ -171,8 +171,7 @@ static bool parse_fmt(struct testcard_state2 *s, char *fmt) {
log_msg(LOG_LEVEL_ERROR, "Missing FPS for testcard\n");
return false;
}
s->desc.fps = strtod(tmp, NULL);
if (errno == ERANGE) {
if (!parse_fps(tmp, &s->desc)) {
log_msg(LOG_LEVEL_ERROR, "Wrong FPS for testcard\n");
return false;
}