mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 18:40:16 +00:00
testcard2: use parse_fps to allow interlacing
this allows syntax like "59.74i"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user